Skip to content

Commit ac97c93

Browse files
Eliav FarberWim Van Sebroeck
authored andcommitted
watchdog: sp805: disable watchdog on remove
Disable the watchdog if it is active while removing the module. It is necessary in order to prevent a reset in case watchdog hw was running before the removal. Signed-off-by: Eliav Farber <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent a7ceca4 commit ac97c93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/watchdog/sp805_wdt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ sp805_wdt_probe(struct amba_device *adev, const struct amba_id *id)
272272
watchdog_set_nowayout(&wdt->wdd, nowayout);
273273
watchdog_set_drvdata(&wdt->wdd, wdt);
274274
watchdog_set_restart_priority(&wdt->wdd, 128);
275+
watchdog_stop_on_unregister(&wdt->wdd);
275276

276277
/*
277278
* If 'timeout-sec' devicetree property is specified, use that.

0 commit comments

Comments
 (0)