From: Benjamin Gaignard Date: Mon, 29 May 2017 15:45:56 +0000 (+0200) Subject: mfd: exynos: Use devm_of_platform_populate() X-Git-Tag: v4.14-rc1~554^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11ee55d94e628a9931564372df23ae054834c38f;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c index 0bf3aeb..ca829f8 100644 --- a/drivers/mfd/exynos-lpass.c +++ b/drivers/mfd/exynos-lpass.c @@ -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)