Commit 8a340dbb authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Wim Van Sebroeck

watchdog: imgpdc: Unregister restart handler on remove

Commit c631f200 ("watchdog: imgpdc: Add reboot support") introduced
a restart handler but forgot to unregister it on driver removal. Fix it.

Fixes: c631f200 ("watchdog: imgpdc: Add reboot support")
Reported-by: default avatarAriel D'Alessandro <ariel@vanguardiasur.com.ar>
Signed-off-by: default avatarEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent f15d7114
...@@ -316,6 +316,7 @@ static int pdc_wdt_remove(struct platform_device *pdev) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment