Commit 30d97820 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] remove check_region from isurf.c

From:  william stinson <wstinson@wanadoo.fr>
parent 51a0bf48
...@@ -242,14 +242,12 @@ setup_isurf(struct IsdnCard *card) ...@@ -242,14 +242,12 @@ setup_isurf(struct IsdnCard *card)
return (0); return (0);
#endif #endif
} }
if (check_region(cs->hw.isurf.reset, 1)) { if (!request_region(cs->hw.isurf.reset, 1, "isurf isdn")) {
printk(KERN_WARNING printk(KERN_WARNING
"HiSax: %s config port %x already in use\n", "HiSax: %s config port %x already in use\n",
CardType[card->typ], CardType[card->typ],
cs->hw.isurf.reset); cs->hw.isurf.reset);
return (0); return (0);
} else {
request_region(cs->hw.isurf.reset, 1, "isurf isdn");
} }
if (check_mem_region(cs->hw.isurf.phymem, ISURF_IOMEM_SIZE)) { if (check_mem_region(cs->hw.isurf.phymem, ISURF_IOMEM_SIZE)) {
printk(KERN_WARNING printk(KERN_WARNING
......
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