sc1200_wdt: Fix oops
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Wed, 4 Dec 2013 15:31:52 +0000 (15:31 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 10 Dec 2013 07:48:15 +0000 (08:48 +0100)
commitdace8bbfccfd9e4fcccfffcfbd82881fda3e756f
tree95032d1270fd51614b0553252227fbb36639ddad
parent9539210e17dc09ea1472076c297d461c7507a5bb
sc1200_wdt: Fix oops

If loaded with isapnp = 0 the driver explodes. This is catching
people out now and then. What should happen in the working case is
a complete mystery and the code appears terminally confused, but we
can at least make the error path work properly.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Partially-Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=53991
drivers/watchdog/sc1200wdt.c