1
0
Fork 0

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 <benjamin.gaignard@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
zero-colors
Benjamin Gaignard 2017-05-29 17:45:56 +02:00 committed by Lee Jones
parent a55196eff6
commit 11ee55d94e
1 changed files with 1 additions and 1 deletions

View File

@ -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)