summaryrefslogtreecommitdiff
path: root/drivers/mfd/ssbi.c
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>2017-10-25 17:15:01 +0300
committerLee Jones <lee.jones@linaro.org>2017-11-01 12:32:23 +0300
commitf38aa351d0c73280ac0f3a0cef52e3dc298bb73c (patch)
tree625e037e8527474714c2650bcd7a5d0d2d02a9a0 /drivers/mfd/ssbi.c
parent18f77393796848e68909e65d692c1d1436f06e06 (diff)
downloadlinux-f38aa351d0c73280ac0f3a0cef52e3dc298bb73c.tar.xz
mfd: ssbi: Use devm_of_platform_populate()
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>
Diffstat (limited to 'drivers/mfd/ssbi.c')
-rw-r--r--drivers/mfd/ssbi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ssbi.c b/drivers/mfd/ssbi.c
index 27986f641f7d..36b96fee4ce6 100644
--- 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[] = {