mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
This commit is contained in:
parent
8144e1e8ca
commit
d3236214e7
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue