summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-hi655x.c
diff options
context:
space:
mode:
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>2018-12-04 13:37:29 +0200
committerStephen Boyd <sboyd@kernel.org>2018-12-05 09:20:29 -0800
commit1efadbf2fd37d22e1368b8ff35ad9d1f6af146bc (patch)
treecc4048e2682de50068e2016b0342435be4034f4a /drivers/clk/clk-hi655x.c
parent05502bf9eb7a7297f5fa6f1d17b169b3d5b53570 (diff)
downloadlinux-1efadbf2fd37d22e1368b8ff35ad9d1f6af146bc.tar.bz2
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>
Diffstat (limited to 'drivers/clk/clk-hi655x.c')
-rw-r--r--drivers/clk/clk-hi655x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-hi655x.c b/drivers/clk/clk-hi655x.c
index 403a0188634a..a0de3315df2e 100644
--- a/drivers/clk/clk-hi655x.c
+++ b/drivers/clk/clk-hi655x.c
@@ -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 = {