watchdog: sp5100-tco: Abort if watchdog is disabled by hardware
authorGuenter Roeck <linux@roeck-us.net>
Sun, 24 Dec 2017 21:04:16 +0000 (13:04 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 21 Jan 2018 11:56:37 +0000 (12:56 +0100)
commitf7781b067522aa269213e8025c80cbed1868d349
tree0490b61bdc2f6786ef8bee43f1e9b05154309952
parent17b20833ff427e285e36e4ce6e5dc8b0046fa0a4
watchdog: sp5100-tco: Abort if watchdog is disabled by hardware

If the watchdog control register indicates that the watchdog hardware
is disabled even after we tried to enable it, there is no point to
instantiate the driver.

Cc: Zoltán Böszörményi <zboszor@pr.hu>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/sp5100_tco.c
drivers/watchdog/sp5100_tco.h