watchdog: Return proper error in nuc900wdt_probe if misc_register fails
authorAxel Lin <axel.lin@gmail.com>
Wed, 18 Jan 2012 02:46:52 +0000 (10:46 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 27 Jan 2012 08:54:51 +0000 (09:54 +0100)
commit2865e770c9dddd40676eadf7c3dfe80aee7628e4
tree56e4495c3c6d100daf457918cd389c1043b2633e
parente352829a67c1a80c73dfad33ba9dca8ddf2ef0fd
watchdog: Return proper error in nuc900wdt_probe if misc_register fails

Return proper error instead of 0 if misc_register fails

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/nuc900_wdt.c