diff options
| author | Liu Xinpeng <[email protected]> | 2022-04-26 22:53:30 +0800 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2022-05-21 10:09:30 +0200 |
| commit | 330415ebea81b65842e4cc6d2fd985c1b369e650 (patch) | |
| tree | 0a1745b19fd30491078403e8d4e9f4d54dae0fd3 | |
| parent | 27fdf84510a1374748904db43f6755f912736d92 (diff) | |
watchdog: wdat_wdt: Stop watchdog when uninstalling module
Test shows that wachdog still reboots machine after the module
is removed. Use watchdog_stop_on_unregister to stop the watchdog
on removing.
Signed-off-by: Liu Xinpeng <[email protected]>
eviewed-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]>
| -rw-r--r-- | drivers/watchdog/wdat_wdt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/wdat_wdt.c b/drivers/watchdog/wdat_wdt.c index 6f36a653767b..e6f95e99156d 100644 --- a/drivers/watchdog/wdat_wdt.c +++ b/drivers/watchdog/wdat_wdt.c @@ -463,6 +463,7 @@ static int wdat_wdt_probe(struct platform_device *pdev) watchdog_set_nowayout(&wdat->wdd, nowayout); watchdog_stop_on_reboot(&wdat->wdd); + watchdog_stop_on_unregister(&wdat->wdd); return devm_watchdog_register_device(dev, &wdat->wdd); } |