Commit 6b70b7d4 authored by William Stinson's avatar William Stinson Committed by Jeff Garzik

request_region janitor update for sdla wan driver

parent b504b0e3
......@@ -1348,8 +1348,10 @@ int sdla_set_config(struct net_device *dev, struct ifmap *map)
return(-EINVAL);
dev->base_addr = map->base_addr;
request_region(dev->base_addr, SDLA_IO_EXTENTS, dev->name);
if (!request_region(dev->base_addr, SDLA_IO_EXTENTS, dev->name)){
printk(KERN_WARNING "SDLA: io-port 0x%04lx in use \n", dev->base_addr);
return(-EINVAL);
}
/* test for card types, S502A, S502E, S507, S508 */
/* these tests shut down the card completely, so clear the state */
flp->type = SDLA_UNKNOWN;
......
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