diff options
author | Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> | 2018-12-07 06:10:51 -0500 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-02-06 13:35:04 -0500 |
commit | d3236214e7dead87e7aefd32259aaf0bf41cf050 (patch) | |
tree | dfef7bc199bf9f1d4f8d69187890b9b8a647f96b | |
parent | 8144e1e8cacf30b74e331120edc368270b0ec1c0 (diff) |
clk: clk-st: avoid clkdev lookup leak at remove
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>
-rw-r--r-- | drivers/clk/x86/clk-st.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/x86/clk-st.c b/drivers/clk/x86/clk-st.c index 3a0996f2d556..25d4b97aff9b 100644 --- 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) | |||
52 | 0, st_data->base + MISCCLKCNTL1, OSCCLKENB, | 52 | 0, st_data->base + MISCCLKCNTL1, OSCCLKENB, |
53 | CLK_GATE_SET_TO_DISABLE, NULL); | 53 | CLK_GATE_SET_TO_DISABLE, NULL); |
54 | 54 | ||
55 | clk_hw_register_clkdev(hws[ST_CLK_GATE], "oscout1", NULL); | 55 | devm_clk_hw_register_clkdev(&pdev->dev, hws[ST_CLK_GATE], "oscout1", |
56 | NULL); | ||
56 | 57 | ||
57 | return 0; | 58 | return 0; |
58 | } | 59 | } |