]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
watchdog: Make stop function optional
authorGuenter Roeck <linux@roeck-us.net>
Sun, 28 Feb 2016 21:12:17 +0000 (13:12 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 16 Mar 2016 20:11:16 +0000 (21:11 +0100)
commitd0684c8a9354953efdea214b437445c00743cf49
tree0442757196b7ee3e169846a4ef1fa13249870566
parentee142889e32f564f9b5e57b68b06693ec5473074
watchdog: Make stop function optional

Not all hardware watchdogs can be stopped. The driver for
such watchdogs would typically only set the WATCHDOG_HW_RUNNING
flag in its stop function. Make the stop function optional and set
WATCHDOG_HW_RUNNING in the watchdog core if it is not provided.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Documentation/watchdog/watchdog-kernel-api.txt
drivers/watchdog/watchdog_core.c
drivers/watchdog/watchdog_dev.c