Commit 1cb11c4f authored by William Stinson's avatar William Stinson Committed by Linus Torvalds

[PATCH] remove check_region from drivers_isdn_hisax_asuscom.c

  This patch for drivers/isdn/hisax/asuscom.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.  This patch removes
  all references to check_region in this driver.

  This is patch number 26 in a series of check_region patches I am doing as
  part of the kernel janitors project.
parent 73ef1072
......@@ -385,15 +385,14 @@ setup_asuscom(struct IsdnCard *card)
bytecnt = 8;
cs->hw.asus.cfg_reg = card->para[1];
cs->irq = card->para[0];
if (check_region((cs->hw.asus.cfg_reg), bytecnt)) {
if (!request_region((cs->hw.asus.cfg_reg), bytecnt,
"asuscom isdn")) {
printk(KERN_WARNING
"HiSax: %s config port %x-%x already in use\n",
CardType[card->typ],
cs->hw.asus.cfg_reg,
cs->hw.asus.cfg_reg + bytecnt);
return (0);
} else {
request_region(cs->hw.asus.cfg_reg, bytecnt, "asuscom isdn");
}
printk(KERN_INFO "ISDNLink: defined at 0x%x IRQ %d\n",
cs->hw.asus.cfg_reg, 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