From: Denis Turischev Date: Thu, 5 Nov 2009 11:32:40 +0000 (+0200) Subject: [WATCHDOG] SBC-FITPC2 watchdog driver registration fix X-Git-Tag: v2.6.32-rc7~50^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1efd374d78834a793663414402911765bcdda6eb;p=profile%2Fcommon%2Fkernel-common.git [WATCHDOG] SBC-FITPC2 watchdog driver registration fix This patch fixes device registration process. Signed-off-by: Denis Turischev Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/sbc_fitpc2_wdt.c b/drivers/watchdog/sbc_fitpc2_wdt.c index 852ca19..91430a8 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;