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

[PATCH] remove check_region from drivers_isdn_hisax_avm_pci.c

  This patch for drivers/isdn/hisax/avm_pci.c isdn driver 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 24 in a series of check_region patches I am doing as
  part of the kernel janitors project.
parent 9bd253df
...@@ -746,16 +746,14 @@ setup_avm_pcipnp(struct IsdnCard *card) ...@@ -746,16 +746,14 @@ setup_avm_pcipnp(struct IsdnCard *card)
} }
ready: ready:
cs->hw.avm.isac = cs->hw.avm.cfg_reg + 0x10; cs->hw.avm.isac = cs->hw.avm.cfg_reg + 0x10;
if (check_region((cs->hw.avm.cfg_reg), 32)) { if (!request_region((cs->hw.avm.cfg_reg), 32, (cs->subtyp == AVM_FRITZ_PCI)
? "avm PCI" : "avm PnP")) {
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.avm.cfg_reg, cs->hw.avm.cfg_reg,
cs->hw.avm.cfg_reg + 31); cs->hw.avm.cfg_reg + 31);
return (0); return (0);
} else {
request_region(cs->hw.avm.cfg_reg, 32,
(cs->subtyp == AVM_FRITZ_PCI) ? "avm PCI" : "avm PnP");
} }
switch (cs->subtyp) { switch (cs->subtyp) {
case AVM_FRITZ_PCI: case AVM_FRITZ_PCI:
......
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