Commit 654dea6e authored by Matti Vaittinen's avatar Matti Vaittinen Committed by Stephen Boyd
Browse files

clk: clk-twl6040: Free of_provider at remove



use devm variant for of_provider registration so provider is freed
at exit.

Signed-off-by: default avatarMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 25224667
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -108,8 +108,7 @@ static int twl6040_pdmclk_probe(struct platform_device *pdev)

	platform_set_drvdata(pdev, clkdata);

	return of_clk_add_hw_provider(pdev->dev.parent->of_node,
				      of_clk_hw_simple_get,
	return devm_of_clk_add_hw_provider(&pdev->dev, of_clk_hw_simple_get,
					   &clkdata->pdmclk_hw);
}