mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
watchdog: imgpdc: Unregister restart handler on remove
Commitc631f20068
("watchdog: imgpdc: Add reboot support") introduced a restart handler but forgot to unregister it on driver removal. Fix it. Fixes:c631f20068
("watchdog: imgpdc: Add reboot support") Reported-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
f15d7114bb
commit
8a340dbbc4
@ -316,6 +316,7 @@ static int pdc_wdt_remove(struct platform_device *pdev)
|
|||||||
{
|
{
|
||||||
struct pdc_wdt_dev *pdc_wdt = platform_get_drvdata(pdev);
|
struct pdc_wdt_dev *pdc_wdt = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
|
unregister_restart_handler(&pdc_wdt->restart_handler);
|
||||||
pdc_wdt_stop(&pdc_wdt->wdt_dev);
|
pdc_wdt_stop(&pdc_wdt->wdt_dev);
|
||||||
watchdog_unregister_device(&pdc_wdt->wdt_dev);
|
watchdog_unregister_device(&pdc_wdt->wdt_dev);
|
||||||
clk_disable_unprepare(pdc_wdt->wdt_clk);
|
clk_disable_unprepare(pdc_wdt->wdt_clk);
|
||||||
|
Loading…
Reference in New Issue
Block a user