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

[PATCH] remove check_region from nj_u.c

  This patch for isdn/hisax/nj_u.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 15 in a series of check_region patches I am doing as
  part of the kernel janitors project.
parent 9d4e7cce
......@@ -213,15 +213,13 @@ setup_netjet_u(struct IsdnCard *card)
printk(KERN_INFO
"NETspider-U: PCI card configured at %#lx IRQ %d\n",
cs->hw.njet.base, cs->irq);
if (check_region(cs->hw.njet.base, bytecnt)) {
if (!request_region(cs->hw.njet.base, bytecnt, "netspider-u isdn")) {
printk(KERN_WARNING
"HiSax: %s config port %#lx-%#lx already in use\n",
CardType[card->typ],
cs->hw.njet.base,
cs->hw.njet.base + bytecnt);
return (0);
} else {
request_region(cs->hw.njet.base, bytecnt, "netspider-u isdn");
}
reset_netjet_u(cs);
cs->dc_hw_ops = &netjet_dc_ops;
......
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