mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mfd: exynos: Use devm_of_platform_populate()
Use devm_of_platform_populate() to be sure that of_platform_depopulate is called when removing the driver. Signed-off-by: Benjamin Gaignard <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
a55196eff6
commit
11ee55d94e
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ static int exynos_lpass_probe(struct platform_device *pdev)
|
|||
pm_runtime_enable(dev);
|
||||
exynos_lpass_enable(lpass);
|
||||
|
||||
return of_platform_populate(dev->of_node, NULL, NULL, dev);
|
||||
return devm_of_platform_populate(dev);
|
||||
}
|
||||
|
||||
static int exynos_lpass_remove(struct platform_device *pdev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue