diff options
author | Denis Turischev <denis@compulab.co.il> | 2009-11-05 13:32:40 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2009-11-10 15:06:52 +0000 |
commit | 1efd374d78834a793663414402911765bcdda6eb (patch) | |
tree | 8da7a321f01eb39abb68a6e596e5b1c172d591d1 /drivers/watchdog | |
parent | 799dd75b1a8380a967c929a4551895788c374b31 (diff) | |
download | linux-1efd374d78834a793663414402911765bcdda6eb.tar.gz linux-1efd374d78834a793663414402911765bcdda6eb.tar.bz2 linux-1efd374d78834a793663414402911765bcdda6eb.zip |
[WATCHDOG] SBC-FITPC2 watchdog driver registration fix
This patch fixes device registration process.
Signed-off-by: Denis Turischev <denis@compulab.co.il>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/sbc_fitpc2_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/sbc_fitpc2_wdt.c b/drivers/watchdog/sbc_fitpc2_wdt.c index 852ca1977917..91430a89107c 100644 --- a/drivers/watchdog/sbc_fitpc2_wdt.c +++ b/drivers/watchdog/sbc_fitpc2_wdt.c @@ -227,7 +227,7 @@ static int __init fitpc2_wdt_init(void) } err = misc_register(&fitpc2_wdt_miscdev); - if (!err) { + if (err) { pr_err("cannot register miscdev on minor=%d (err=%d)\n", WATCHDOG_MINOR, err); goto err_margin; |