projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e352829
)
watchdog: Return proper error in nuc900wdt_probe if misc_register fails
author
Axel Lin
<axel.lin@gmail.com>
Wed, 18 Jan 2012 02:46:52 +0000
(10:46 +0800)
committer
Wim Van Sebroeck
<wim@iguana.be>
Fri, 27 Jan 2012 08:54:51 +0000
(09:54 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/watchdog/nuc900_wdt.c
b/drivers/watchdog/nuc900_wdt.c
index 2cce8568bd21c9903166af402ed13422788ff24b..529085b8b8fb0358275b3cbbf65801b5eee74445 100644
(file)
--- a/
drivers/watchdog/nuc900_wdt.c
+++ b/
drivers/watchdog/nuc900_wdt.c
@@
-287,7
+287,8
@@
static int __devinit nuc900wdt_probe(struct platform_device *pdev)
setup_timer(&nuc900_wdt->timer, nuc900_wdt_timer_ping, 0);
- if (misc_register(&nuc900wdt_miscdev)) {
+ ret = misc_register(&nuc900wdt_miscdev);
+ if (ret) {
dev_err(&pdev->dev, "err register miscdev on minor=%d (%d)\n",
WATCHDOG_MINOR, ret);
goto err_clk;