Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11ee55d9 authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Lee Jones
Browse files

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: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent a55196ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)