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

[PATCH] h8 janitor work

o Check request_region result
parent e7108e9c
......@@ -299,9 +299,13 @@ static int __init h8_init(void)
}
printk(KERN_INFO "H8 at 0x%x IRQ %d\n", h8_base, h8_irq);
create_proc_info_entry("driver/h8", 0, NULL, h8_get_info);
if (!request_region(h8_base, 8, "h8"))
{
free_irq(h8_irq, NULL);
return -EIO;
}
request_region(h8_base, 8, "h8");
create_proc_info_entry("driver/h8", 0, NULL, h8_get_info);
h8_alloc_queues();
......
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