Skip to content

Commit

Permalink
[WATCHDOG] SBC-FITPC2 watchdog driver registration fix
Browse files Browse the repository at this point in the history
This patch fixes device registration process.

Signed-off-by: Denis Turischev <denis@compulab.co.il>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Denis Turischev authored and Wim Van Sebroeck committed Nov 10, 2009
1 parent 799dd75 commit 1efd374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/sbc_fitpc2_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1efd374

Please sign in to comment.