Commit f77c18c6 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] mixcomwd janitor work

simple region handling cleanups.
parent 19a8356e
...@@ -247,11 +247,15 @@ static int __init mixcomwd_init(void) ...@@ -247,11 +247,15 @@ static int __init mixcomwd_init(void)
return -ENODEV; return -ENODEV;
} }
request_region(watchdog_port,1,"MixCOM watchdog"); if (!request_region(watchdog_port,1,"MixCOM watchdog"))
return -EIO;
ret = misc_register(&mixcomwd_miscdev); ret = misc_register(&mixcomwd_miscdev);
if (ret) if (ret)
{
release_region(watchdog_port, 1);
return ret; return ret;
}
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment