watchdog: core: Fix error handling of watchdog_dev_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 19 Jul 2016 11:22:34 +0000 (11:22 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 25 Jul 2016 10:02:55 +0000 (12:02 +0200)
commit138913cb632be12344982e54ccd12f6f15971bf7
treedbcb5044725b7e6d63e1a037f45726db449e8707
parentcddd74db8d42b953a0612810f07c99e73deab185
watchdog: core: Fix error handling of watchdog_dev_init()

Fix the error handling paths of watchdog_dev_init().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/watchdog_dev.c