Commit 5b01c0f7 authored by William Stinson's avatar William Stinson Committed by Linus Torvalds

[PATCH] remove check_region from drivers_isdn_hisax_teles0.c

  This patch for isdn/hisax/teles0.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 17 in a series of check_region patches I am doing as
  part of the kernel janitors project.
parent 043bb619
......@@ -249,15 +249,13 @@ setup_teles0(struct IsdnCard *card)
}
cs->irq = card->para[0];
if (cs->hw.teles0.cfg_reg) {
if (check_region(cs->hw.teles0.cfg_reg, 8)) {
if (!request_region(cs->hw.teles0.cfg_reg, 8, "teles cfg")) {
printk(KERN_WARNING
"HiSax: %s config port %x-%x already in use\n",
CardType[card->typ],
cs->hw.teles0.cfg_reg,
cs->hw.teles0.cfg_reg + 8);
return (0);
} else {
request_region(cs->hw.teles0.cfg_reg, 8, "teles cfg");
}
}
if (cs->hw.teles0.cfg_reg) {
......
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