diff options
author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2017-05-29 17:45:56 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-07-06 08:29:12 +0100 |
commit | 11ee55d94e628a9931564372df23ae054834c38f (patch) | |
tree | 41ae924867c469bb2c03c4cddc48f34f6211f3e2 /drivers/mfd | |
parent | a55196eff6d63be4c439d707ce3b68ee82794ee9 (diff) | |
download | linux-11ee55d94e628a9931564372df23ae054834c38f.tar.bz2 |
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/exynos-lpass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c index 0bf3aebdac45..ca829f85672f 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) |