Commit b518f748 authored by William Stinson's avatar William Stinson Committed by Linus Torvalds

[PATCH] remove check_region from sportster.c

  This patch for sportster.c isdn driver for Linux removes one call to
  check_region using request_region instead

  I don't have this hardware so patch is not tested at all (I hope I got
  it right).  This patch removes all references to check_region in this
  driver.

  This is patch number 10 in a series of check_region patches I am doing
  as part of the kernel janitors project.
parent 1c677d70
...@@ -196,13 +196,12 @@ get_io_range(struct IsdnCardState *cs) ...@@ -196,13 +196,12 @@ get_io_range(struct IsdnCardState *cs)
for (i=0;i<64;i++) { for (i=0;i<64;i++) {
adr = cs->hw.spt.cfg_reg + i *1024; adr = cs->hw.spt.cfg_reg + i *1024;
if (check_region(adr, 8)) { if (!request_region(adr, 8, "sportster")) {
printk(KERN_WARNING printk(KERN_WARNING
"HiSax: %s config port %x-%x already in use\n", "HiSax: %s config port %x-%x already in use\n",
CardType[cs->typ], adr, adr + 8); CardType[cs->typ], adr, adr + 8);
break; break;
} else }
request_region(adr, 8, "sportster");
} }
if (i==64) if (i==64)
return(1); return(1);
......
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