diff options
author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2017-05-29 17:45:54 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-07-06 08:29:12 +0100 |
commit | ad56b2a4da907741236c612be913f28657962382 (patch) | |
tree | 8a5ccdea65cf0f21fbed12dc073b70ef114be55f | |
parent | c42a8edbe95db8106a68d7680c8379c4f80d9845 (diff) | |
download | op-kernel-dev-ad56b2a4da907741236c612be913f28657962382.zip op-kernel-dev-ad56b2a4da907741236c612be913f28657962382.tar.gz |
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>
-rw-r--r-- | drivers/mfd/atmel-flexcom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/atmel-flexcom.c b/drivers/mfd/atmel-flexcom.c index e8e67be..064bde9 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[] = { |