mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 06:15:12 +00:00
[WATCHDOG] Mixcom Watchdog - clean-up printk's
Clean-up printk's. Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
1c067318a2
commit
27c7742e7a
@ -287,13 +287,19 @@ static int __init mixcomwd_init(void)
|
|||||||
ret = misc_register(&mixcomwd_miscdev);
|
ret = misc_register(&mixcomwd_miscdev);
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
release_region(watchdog_port, 1);
|
printk(KERN_ERR PFX "cannot register miscdev on minor=%d (err=%d)\n",
|
||||||
return ret;
|
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);
|
printk(KERN_INFO "MixCOM watchdog driver v%s, watchdog port at 0x%3x\n",VERSION,watchdog_port);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
error_misc_register_watchdog:
|
||||||
|
release_region(watchdog_port, 1);
|
||||||
|
watchdog_port = 0x0000;
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __exit mixcomwd_exit(void)
|
static void __exit mixcomwd_exit(void)
|
||||||
@ -306,8 +312,8 @@ static void __exit mixcomwd_exit(void)
|
|||||||
mixcomwd_timer_alive=0;
|
mixcomwd_timer_alive=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
release_region(watchdog_port,1);
|
|
||||||
misc_deregister(&mixcomwd_miscdev);
|
misc_deregister(&mixcomwd_miscdev);
|
||||||
|
release_region(watchdog_port,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
module_init(mixcomwd_init);
|
module_init(mixcomwd_init);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user