mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
rtc: brcmstb-waketimer: add missed clk_disable_unprepare
commit94303f8930upstream. This driver forgets to disable and unprepare clock when remove. Add a call to clk_disable_unprepare to fix it. Fixes:c4f07ecee2("rtc: brcmstb-waketimer: Add Broadcom STB wake-timer") Signed-off-by: Chuhong Yuan <hslester96@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20191105160043.20018-1-hslester96@gmail.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f899dc31f1
commit
5e003f9eeb
|
|
@ -287,6 +287,7 @@ static int brcmstb_waketmr_remove(struct platform_device *pdev)
|
|||
struct brcmstb_waketmr *timer = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
unregister_reboot_notifier(&timer->reboot_notifier);
|
||||
clk_disable_unprepare(timer->clk);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user