提交 1ce4e6b9 编写于 作者: L Liu Xinpeng 提交者: Yunying Sun

watchdog: wdat_wdt: Stop watchdog when uninstalling module

mainline inclusion
from mainline-v5.19-rc1
commit 330415eb
category: bugfix
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I596BF

Intel-SIG: commit 330415eb 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: NLiu Xinpeng <liuxp11@chinatelecom.cn>
eviewed-by: NGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/1650984810-6247-4-git-send-email-liuxp11@chinatelecom.cnSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NWim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: NYunying Sun <yunying.sun@intel.com>
上级 c2e5f820
...@@ -463,6 +463,7 @@ static int wdat_wdt_probe(struct platform_device *pdev) ...@@ -463,6 +463,7 @@ static int wdat_wdt_probe(struct platform_device *pdev)
watchdog_set_nowayout(&wdat->wdd, nowayout); watchdog_set_nowayout(&wdat->wdd, nowayout);
watchdog_stop_on_reboot(&wdat->wdd); watchdog_stop_on_reboot(&wdat->wdd);
watchdog_stop_on_unregister(&wdat->wdd);
return devm_watchdog_register_device(dev, &wdat->wdd); return devm_watchdog_register_device(dev, &wdat->wdd);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册