projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18f7739
)
mfd: ssbi: Use devm_of_platform_populate()
author
Benjamin Gaignard
<benjamin.gaignard@linaro.org>
Wed, 25 Oct 2017 14:15:01 +0000
(16:15 +0200)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 1 Nov 2017 09:32:23 +0000
(09:32 +0000)
Use devm_of_platform_populate() instead of 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/ssbi.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/ssbi.c
b/drivers/mfd/ssbi.c
index
27986f6
..
36b96fe
100644
(file)
--- a/
drivers/mfd/ssbi.c
+++ b/
drivers/mfd/ssbi.c
@@
-314,7
+314,7
@@
static int ssbi_probe(struct platform_device *pdev)
spin_lock_init(&ssbi->lock);
- return
of_platform_populate(np, NULL, NULL,
&pdev->dev);
+ return
devm_of_platform_populate(
&pdev->dev);
}
static const struct of_device_id ssbi_match_table[] = {