Commit 3eb31917 authored by William Stinson's avatar William Stinson Committed by Jeff Garzik

request_region janitor updates for sealevel wan driver

parent c6383562
...@@ -219,12 +219,11 @@ static struct slvl_board *slvl_init(int iobase, int irq, int txdma, int rxdma, i ...@@ -219,12 +219,11 @@ static struct slvl_board *slvl_init(int iobase, int irq, int txdma, int rxdma, i
* Get the needed I/O space * Get the needed I/O space
*/ */
if(check_region(iobase, 8)) if(!request_region(iobase, 8, "Sealevel 4021"))
{ {
printk(KERN_WARNING "sealevel: I/O 0x%X already in use.\n", iobase); printk(KERN_WARNING "sealevel: I/O 0x%X already in use.\n", iobase);
return NULL; return NULL;
} }
request_region(iobase, 8, "Sealevel 4021");
b=(struct slvl_board *)kmalloc(sizeof(struct slvl_board), GFP_KERNEL); b=(struct slvl_board *)kmalloc(sizeof(struct slvl_board), GFP_KERNEL);
if(!b) if(!b)
......
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