Commit b03eab42 authored by William Stinson's avatar William Stinson Committed by Jeff Garzik

request_region janitor updates for megaraid scsi driver:

1) removes calls to check_region 
2) checks the result of request_region 
parent a1699d96
...@@ -3009,11 +3009,10 @@ static int mega_findCard (Scsi_Host_Template * pHostTmpl, ...@@ -3009,11 +3009,10 @@ static int mega_findCard (Scsi_Host_Template * pHostTmpl,
if (!(flag & BOARD_QUARTZ)) { if (!(flag & BOARD_QUARTZ)) {
/* Request our IO Range */ /* Request our IO Range */
if (check_region (megaBase, 16)) { if (!request_region(megaBase, 16, "megaraid")) {
printk(KERN_WARNING "megaraid: Couldn't register I/O range!\n"); printk(KERN_WARNING "megaraid: Couldn't register I/O range!\n");
goto err_unregister; goto err_unregister;
} }
request_region(megaBase, 16, "megaraid");
} }
/* Request our IRQ */ /* Request our IRQ */
......
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