watchdog: Fix rio watchdog probe function
authorThomas Gleixner <[email protected]>
Wed, 14 Oct 2009 08:18:26 +0000 (01:18 -0700)
committerDavid S. Miller <[email protected]>
Wed, 14 Oct 2009 08:18:26 +0000 (01:18 -0700)
commit03717e3d12b625268848414e39beda25e4515692
tree8f5b80f26b8c473675aab6dcd63f5a0cfb518794
parentc58543c869606532c2382f027d6466f4672ea756
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 e42311d75 (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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/watchdog/riowd.c