watchdog: Fix rio watchdog probe function
commitbfdf85fe73f1b697430bbeb763f8456e2ce52e9d
authorThomas Gleixner <tglx@linutronix.de>
Wed, 14 Oct 2009 08:18:26 +0000 (14 01:18 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Nov 2009 00:21:59 +0000 (9 16:21 -0800)
tree3b07be97c09dd1d8dad796be9f70bac6d709e3f3
parente1f7f4182a52b850379c0d4f35a8085d9552786a
watchdog: Fix rio watchdog probe function

[ Upstream commit 03717e3d12b625268848414e39beda25e4515692 ]

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 <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/watchdog/riowd.c