Skip to content

Commit

Permalink
rtc: brcmstb-waketimer: add missed clk_disable_unprepare
Browse files Browse the repository at this point in the history
This driver forgets to disable and unprepare clock when remove.
Add a call to clk_disable_unprepare to fix it.

Fixes: c4f07ec ("rtc: brcmstb-waketimer: Add Broadcom STB wake-timer")
Signed-off-by: Chuhong Yuan <[email protected]>
Acked-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
  • Loading branch information
WillLester authored and alexandrebelloni committed Nov 8, 2019
1 parent 0e84313 commit 94303f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/rtc/rtc-brcmstb-waketimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,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;
}
Expand Down

0 comments on commit 94303f8

Please sign in to comment.