From: Benjamin Gaignard Date: Wed, 25 Oct 2017 14:15:01 +0000 (+0200) Subject: mfd: ssbi: Use devm_of_platform_populate() X-Git-Tag: v4.15-rc1~87^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f38aa351d0c73280ac0f3a0cef52e3dc298bb73c;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/ssbi.c b/drivers/mfd/ssbi.c index 27986f641f7db..36b96fee4ce60 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[] = {