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>
This commit is contained in:
Matti Vaittinen 2018-12-04 13:38:32 +02:00 коммит произвёл Stephen Boyd
Родитель 252246674f
Коммит 654dea6ec4
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -108,9 +108,8 @@ static int twl6040_pdmclk_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, clkdata); platform_set_drvdata(pdev, clkdata);
return of_clk_add_hw_provider(pdev->dev.parent->of_node, return devm_of_clk_add_hw_provider(&pdev->dev, of_clk_hw_simple_get,
of_clk_hw_simple_get, &clkdata->pdmclk_hw);
&clkdata->pdmclk_hw);
} }
static struct platform_driver twl6040_pdmclk_driver = { static struct platform_driver twl6040_pdmclk_driver = {