Commit 036c90dc authored by William Stinson's avatar William Stinson Committed by Linus Torvalds

[PATCH] remove check_region from saphir.c

  This patch for saphir.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 11 in a series of check_region patches I am doing
  as part of the kernel janitors project.
parent ce641b88
...@@ -265,15 +265,14 @@ setup_saphir(struct IsdnCard *card) ...@@ -265,15 +265,14 @@ setup_saphir(struct IsdnCard *card)
cs->hw.saphir.hscx = card->para[1] + HSCX_DATA; cs->hw.saphir.hscx = card->para[1] + HSCX_DATA;
cs->hw.saphir.ale = card->para[1] + ADDRESS_REG; cs->hw.saphir.ale = card->para[1] + ADDRESS_REG;
cs->irq = card->para[0]; cs->irq = card->para[0];
if (check_region((cs->hw.saphir.cfg_reg), 6)) { if (!request_region((cs->hw.saphir.cfg_reg), 6, "saphir")) {
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.saphir.cfg_reg, cs->hw.saphir.cfg_reg,
cs->hw.saphir.cfg_reg + 5); cs->hw.saphir.cfg_reg + 5);
return (0); return (0);
} else }
request_region(cs->hw.saphir.cfg_reg,6, "saphir");
printk(KERN_INFO printk(KERN_INFO
"HiSax: %s config irq:%d io:0x%X\n", "HiSax: %s config irq:%d io:0x%X\n",
......
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