mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
clk: clk-hi655x: 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> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
05502bf9eb
commit
1efadbf2fd
1 changed files with 2 additions and 2 deletions
|
@ -107,8 +107,8 @@ 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,
|
||||
&hi655x_clk->clk_hw);
|
||||
return devm_of_clk_add_hw_provider(&pdev->dev, of_clk_hw_simple_get,
|
||||
&hi655x_clk->clk_hw);
|
||||
}
|
||||
|
||||
static struct platform_driver hi655x_clk_driver = {
|
||||
|
|
Loading…
Add table
Reference in a new issue