[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1508940901-3994-1-git-send-email-benjamin.gaignard@linaro.org>
Date: Wed, 25 Oct 2017 16:15:01 +0200
From: Benjamin Gaignard <benjamin.gaignard@...aro.org>
To: andy.gross@...aro.org, david.brown@...aro.org, lee.jones@...aro.org
Cc: linux-arm-msm@...r.kernel.org, linux-soc@...r.kernel.org,
linux-kernel@...r.kernel.org,
Benjamin Gaignard <benjamin.gaignard@...aro.org>
Subject: [PATCH] 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@...aro.org>
---
drivers/mfd/ssbi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/ssbi.c b/drivers/mfd/ssbi.c
index 27986f6..36b96fe 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[] = {
--
2.7.4
Powered by blists - more mailing lists