projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05502bf
)
clk: clk-hi655x: Free of_provider at remove
author
Matti Vaittinen
<matti.vaittinen@fi.rohmeurope.com>
Tue, 4 Dec 2018 11:37:29 +0000
(13:37 +0200)
committer
Stephen Boyd
<sboyd@kernel.org>
Wed, 5 Dec 2018 17:20:29 +0000
(09:20 -0800)
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>
drivers/clk/clk-hi655x.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-hi655x.c
b/drivers/clk/clk-hi655x.c
index 403a0188634a93360c0d133faab12e522b0eee9c..a0de3315df2e94adb637276e616dd887c2996d20 100644
(file)
--- 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 = {