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

[PATCH] remove check_region from isdn_hisax_s0box.c

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

  I don't have this hardware so I hope I got it right.  This patch
  removes all references to check_region in this driver.

  This is patch number 14 in a series of check_region patches I am doing as
  part of the kernel janitors project.
parent ec9167fe
......@@ -250,15 +250,14 @@ setup_s0box(struct IsdnCard *card)
cs->hw.teles3.hscxfifo[0] = cs->hw.teles3.hscx[0] + 0x3e;
cs->hw.teles3.hscxfifo[1] = cs->hw.teles3.hscx[1] + 0x3e;
cs->irq = card->para[0];
if (check_region(cs->hw.teles3.cfg_reg,8)) {
if (!request_region(cs->hw.teles3.cfg_reg,8, "S0Box parallel I/O")) {
printk(KERN_WARNING
"HiSax: %s ports %x-%x already in use\n",
CardType[cs->typ],
cs->hw.teles3.cfg_reg,
cs->hw.teles3.cfg_reg + 7);
return 0;
} else
request_region(cs->hw.teles3.cfg_reg, 8, "S0Box parallel I/O");
}
printk(KERN_INFO
"HiSax: %s config irq:%d isac:0x%x cfg:0x%x\n",
CardType[cs->typ], cs->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