projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a55196e
)
mfd: exynos: Use devm_of_platform_populate()
author
Benjamin Gaignard
<benjamin.gaignard@linaro.org>
Mon, 29 May 2017 15:45:56 +0000
(17:45 +0200)
committer
Lee Jones
<lee.jones@linaro.org>
Thu, 6 Jul 2017 07:29:12 +0000
(08:29 +0100)
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>
drivers/mfd/exynos-lpass.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/exynos-lpass.c
b/drivers/mfd/exynos-lpass.c
index 0bf3aebdac4507d79daa087397485183023dc446..ca829f85672f8f0663b6bc8b3d7dffe79cac8a05 100644
(file)
--- 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)