summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>2017-05-29 17:45:54 +0200
committerLee Jones <lee.jones@linaro.org>2017-07-06 08:29:12 +0100
commitad56b2a4da907741236c612be913f28657962382 (patch)
tree8a5ccdea65cf0f21fbed12dc073b70ef114be55f /drivers/mfd
parentc42a8edbe95db8106a68d7680c8379c4f80d9845 (diff)
downloadlinux-stable-ad56b2a4da907741236c612be913f28657962382.tar.gz
linux-stable-ad56b2a4da907741236c612be913f28657962382.tar.bz2
linux-stable-ad56b2a4da907741236c612be913f28657962382.zip
mfd: atmel: Use devm_of_platform_populate()
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/atmel-flexcom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/atmel-flexcom.c b/drivers/mfd/atmel-flexcom.c
index e8e67be6b493..064bde9cff5a 100644
--- a/drivers/mfd/atmel-flexcom.c
+++ b/drivers/mfd/atmel-flexcom.c
@@ -80,7 +80,7 @@ static int atmel_flexcom_probe(struct platform_device *pdev)
clk_disable_unprepare(clk);
- return of_platform_populate(np, NULL, NULL, &pdev->dev);
+ return devm_of_platform_populate(&pdev->dev);
}
static const struct of_device_id atmel_flexcom_of_match[] = {