sc1200_wdt: Fix oops
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Wed, 4 Dec 2013 15:31:52 +0000 (15:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:49:07 +0000 (07:49 -0800)
commite50aa26054196975ecbccdc65b65fd8f73fdb6e2
tree55de00839243da95dbfbca90921780549cfe0d75
parentd7c1c86614a9207fbeb5312497024adb8e06f222
sc1200_wdt: Fix oops

commit dace8bbfccfd9e4fcccfffcfbd82881fda3e756f upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/sc1200wdt.c