projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8144e1e
)
clk: clk-st: avoid clkdev lookup leak at remove
author
Matti Vaittinen
<matti.vaittinen@fi.rohmeurope.com>
Fri, 7 Dec 2018 11:10:51 +0000
(13:10 +0200)
committer
Stephen Boyd
<sboyd@kernel.org>
Wed, 6 Feb 2019 18:35:04 +0000
(10:35 -0800)
Use devm based clkdev lookup registration to avoid leaking lookup
structures.
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/x86/clk-st.c
patch
|
blob
|
history
diff --git
a/drivers/clk/x86/clk-st.c
b/drivers/clk/x86/clk-st.c
index
3a0996f
..
25d4b97
100644
(file)
--- a/
drivers/clk/x86/clk-st.c
+++ b/
drivers/clk/x86/clk-st.c
@@
-52,7
+52,8
@@
static int st_clk_probe(struct platform_device *pdev)
0, st_data->base + MISCCLKCNTL1, OSCCLKENB,
CLK_GATE_SET_TO_DISABLE, NULL);
- clk_hw_register_clkdev(hws[ST_CLK_GATE], "oscout1", NULL);
+ devm_clk_hw_register_clkdev(&pdev->dev, hws[ST_CLK_GATE], "oscout1",
+ NULL);
return 0;
}