Commit 22084c7e authored by William Stinson's avatar William Stinson Committed by Linus Torvalds

[PATCH] remove check_region from drivers_isdn_hisax_w6692.c

  This patch for driver drivers/isdn/hisax/bkm_a8.c 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 23 in a series of check_region patches I am doing as
  part of the kernel janitors project.
parent 5b01c0f7
...@@ -844,16 +844,14 @@ setup_w6692(struct IsdnCard *card) ...@@ -844,16 +844,14 @@ setup_w6692(struct IsdnCard *card)
printk(KERN_INFO "Found: %s %s, I/O base: 0x%x, irq: %d\n", printk(KERN_INFO "Found: %s %s, I/O base: 0x%x, irq: %d\n",
id_list[cs->subtyp].vendor_name, id_list[cs->subtyp].card_name, id_list[cs->subtyp].vendor_name, id_list[cs->subtyp].card_name,
pci_ioaddr, pci_irq); pci_ioaddr, pci_irq);
if (check_region((cs->hw.w6692.iobase), 256)) { if (!request_region((cs->hw.w6692.iobase), 256,
id_list[cs->subtyp].card_name)) {
printk(KERN_WARNING printk(KERN_WARNING
"HiSax: %s I/O ports %x-%x already in use\n", "HiSax: %s I/O ports %x-%x already in use\n",
id_list[cs->subtyp].card_name, id_list[cs->subtyp].card_name,
cs->hw.w6692.iobase, cs->hw.w6692.iobase,
cs->hw.w6692.iobase + 255); cs->hw.w6692.iobase + 255);
return (0); return (0);
} else {
request_region(cs->hw.w6692.iobase, 256,
id_list[cs->subtyp].card_name);
} }
#else #else
printk(KERN_WARNING "HiSax: W6692 and NO_PCI_BIOS\n"); printk(KERN_WARNING "HiSax: W6692 and NO_PCI_BIOS\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