Skip to content

Commit

Permalink
[WATCHDOG] Mixcom Watchdog - clean-up printk's
Browse files Browse the repository at this point in the history
Clean-up printk's.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Wim Van Sebroeck committed Jun 4, 2007
1 parent 1c06731 commit 27c7742
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions drivers/char/watchdog/mixcomwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,19 @@ static int __init mixcomwd_init(void)
ret = misc_register(&mixcomwd_miscdev);
if (ret)
{
release_region(watchdog_port, 1);
return ret;
printk(KERN_ERR PFX "cannot register miscdev on minor=%d (err=%d)\n",
WATCHDOG_MINOR, ret);
goto error_misc_register_watchdog;
}

printk(KERN_INFO "MixCOM watchdog driver v%s, watchdog port at 0x%3x\n",VERSION,watchdog_port);

return 0;

error_misc_register_watchdog:
release_region(watchdog_port, 1);
watchdog_port = 0x0000;
return ret;
}

static void __exit mixcomwd_exit(void)
Expand All @@ -306,8 +312,8 @@ static void __exit mixcomwd_exit(void)
mixcomwd_timer_alive=0;
}
}
release_region(watchdog_port,1);
misc_deregister(&mixcomwd_miscdev);
release_region(watchdog_port,1);
}

module_init(mixcomwd_init);
Expand Down

0 comments on commit 27c7742

Please sign in to comment.