Commit 4c540864 authored by William Stinson's avatar William Stinson Committed by Linus Torvalds

[PATCH] remove check_region from drivers_isdn_hisax_sedlbauer.c

  This patch for isdn/hisax/sedlbauer.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 16 in a series of check_region patches I am doing as
  part of the kernel janitors project.
parent 5c6e6c72
...@@ -689,15 +689,13 @@ setup_sedlbauer(struct IsdnCard *card) ...@@ -689,15 +689,13 @@ setup_sedlbauer(struct IsdnCard *card)
* here, it would fail. * here, it would fail.
*/ */
if (cs->hw.sedl.bus != SEDL_BUS_PCMCIA && if (cs->hw.sedl.bus != SEDL_BUS_PCMCIA &&
check_region((cs->hw.sedl.cfg_reg), bytecnt)) { (!request_region((cs->hw.sedl.cfg_reg), bytecnt, "sedlbauer isdn"))) {
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[card->typ], CardType[card->typ],
cs->hw.sedl.cfg_reg, cs->hw.sedl.cfg_reg,
cs->hw.sedl.cfg_reg + bytecnt); cs->hw.sedl.cfg_reg + bytecnt);
return (0); return (0);
} else {
request_region(cs->hw.sedl.cfg_reg, bytecnt, "sedlbauer isdn");
} }
printk(KERN_INFO printk(KERN_INFO
......
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