Commit 02c03412 authored by William Stinson's avatar William Stinson Committed by Linus Torvalds

[PATCH] remove check_region from drivers_isdn_hisax_bkm_a8.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 22 in a series of check_region patches I am doing as
  part of the kernel janitors project.
parent f94299fe
...@@ -270,13 +270,11 @@ BKM_card_msg(struct IsdnCardState *cs, int mt, void *arg) ...@@ -270,13 +270,11 @@ BKM_card_msg(struct IsdnCardState *cs, int mt, void *arg)
int __init int __init
sct_alloc_io(u_int adr, u_int len) sct_alloc_io(u_int adr, u_int len)
{ {
if (check_region(adr, len)) { if (!request_region(adr, len, "scitel")) {
printk(KERN_WARNING printk(KERN_WARNING
"HiSax: Scitel port %#x-%#x already in use\n", "HiSax: Scitel port %#x-%#x already in use\n",
adr, adr + len); adr, adr + len);
return (1); return (1);
} else {
request_region(adr, len, "scitel");
} }
return(0); return(0);
} }
......
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