]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: Fix rio watchdog probe function
authorThomas Gleixner <tglx@linutronix.de>
Wed, 14 Oct 2009 08:18:26 +0000 (01:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Oct 2009 08:18:26 +0000 (01:18 -0700)
commitdba5a08c295ec4cdf023f0f487aea40fe1a6d971
tree8f5b80f26b8c473675aab6dcd63f5a0cfb518794
parent5a7fb1dda33fbd7f192157452e688da9bea1afb7
watchdog: Fix rio watchdog probe function

After sucessfully registering the misc device the driver iounmaps the
hardware registers and kfree's the device data structure. Ouch !

This was introduced with commit 22707c0c2 (riowatchdog: Convert to
pure OF driver) and went unnoticed for more than a year :)

Return success instead of dropping into the error cleanup code path.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/watchdog/riowd.c