Commit 1efadbf2 authored by Matti Vaittinen's avatar Matti Vaittinen Committed by Stephen Boyd
Browse files

clk: clk-hi655x: 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>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 05502bf9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ static int hi655x_clk_probe(struct platform_device *pdev)
	if (ret)
		return ret;

	return of_clk_add_hw_provider(parent->of_node, of_clk_hw_simple_get,
	return devm_of_clk_add_hw_provider(&pdev->dev, of_clk_hw_simple_get,
					   &hi655x_clk->clk_hw);
}