watchdog: gpio_wdt: use core reboot notifier
authorDamien Riegel <damien.riegel@savoirfairelinux.com>
Fri, 20 Nov 2015 21:54:54 +0000 (16:54 -0500)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 13 Dec 2015 14:56:02 +0000 (15:56 +0100)
commit28e805b44d52900fc5b05b35ef3945dc6db336a1
tree68c66c723ca11de50054a803478bf384faeda920
parent5e1f976f43dc6b5903ee4b78536347b5004cefe4
watchdog: gpio_wdt: use core reboot notifier

Get rid of the custom reboot notifier block registration and use the one
provided by the watchdog core.

Note that this watchdog used to stop unconditionnaly on SYS_HALT and
SYS_POWER_OFF. The core function now calls ops->stop on SYS_HALT and
SYS_DOWN. To prevent the watchdog from being stopped on reboot, the
"always-running" property must be set, otherwise it will now be stopped.

Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirlinux.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/gpio_wdt.c