diff options
author | Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> | 2018-12-04 06:38:32 -0500 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-12-05 12:20:43 -0500 |
commit | 654dea6ec4f1a590fb6775b91b562f0ebdaff336 (patch) | |
tree | c65bc5bb57b6f066edd2ed99e27157ac630c3855 | |
parent | 252246674f55acad58312cfa036e7e65068dfb31 (diff) |
clk: clk-twl6040: Free of_provider at remove
use devm variant for of_provider registration so provider is freed
at exit.
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | drivers/clk/clk-twl6040.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c index 25dfe050ae9f..ea846f77750b 100644 --- a/drivers/clk/clk-twl6040.c +++ b/drivers/clk/clk-twl6040.c | |||
@@ -108,9 +108,8 @@ static int twl6040_pdmclk_probe(struct platform_device *pdev) | |||
108 | 108 | ||
109 | platform_set_drvdata(pdev, clkdata); | 109 | platform_set_drvdata(pdev, clkdata); |
110 | 110 | ||
111 | return of_clk_add_hw_provider(pdev->dev.parent->of_node, | 111 | return devm_of_clk_add_hw_provider(&pdev->dev, of_clk_hw_simple_get, |
112 | of_clk_hw_simple_get, | 112 | &clkdata->pdmclk_hw); |
113 | &clkdata->pdmclk_hw); | ||
114 | } | 113 | } |
115 | 114 | ||
116 | static struct platform_driver twl6040_pdmclk_driver = { | 115 | static struct platform_driver twl6040_pdmclk_driver = { |