diff options
author | Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> | 2015-07-23 17:21:16 -0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2015-09-09 21:33:41 +0200 |
commit | 8a340dbbc4b10fe07a924e91979bfc93e966dd65 (patch) | |
tree | dddeaa5b8f79baf3db376110a7a2d7d6a1fc8c3c /drivers/watchdog | |
parent | f15d7114bbdd594f1d8b644a44f647d2b6e9772e (diff) | |
download | op-kernel-dev-8a340dbbc4b10fe07a924e91979bfc93e966dd65.zip op-kernel-dev-8a340dbbc4b10fe07a924e91979bfc93e966dd65.tar.gz |
watchdog: imgpdc: Unregister restart handler on remove
Commit c631f20068 ("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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/imgpdc_wdt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/imgpdc_wdt.c b/drivers/watchdog/imgpdc_wdt.c index 0f73621..15ab072 100644 --- a/drivers/watchdog/imgpdc_wdt.c +++ b/drivers/watchdog/imgpdc_wdt.c @@ -316,6 +316,7 @@ static int pdc_wdt_remove(struct platform_device *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); watchdog_unregister_device(&pdc_wdt->wdt_dev); clk_disable_unprepare(pdc_wdt->wdt_clk); |