Commit 367635e2 authored by William Stinson's avatar William Stinson Committed by Linus Torvalds

[PATCH] remove check_region in drivers_isdn_hisax_mic.c

  This patch for drivers/isdn/hisax/mic.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 18 in a series of check_region patches I am doing as
  part of the kernel janitors project.
parent 2731bb57
......@@ -214,15 +214,13 @@ setup_mic(struct IsdnCard *card)
cs->hw.mic.isac = cs->hw.mic.cfg_reg + MIC_ISAC;
cs->hw.mic.hscx = cs->hw.mic.cfg_reg + MIC_HSCX;
if (check_region((cs->hw.mic.cfg_reg), bytecnt)) {
if (!request_region((cs->hw.mic.cfg_reg), bytecnt, "mic isdn")) {
printk(KERN_WARNING
"HiSax: %s config port %x-%x already in use\n",
CardType[card->typ],
cs->hw.mic.cfg_reg,
cs->hw.mic.cfg_reg + bytecnt);
return (0);
} else {
request_region(cs->hw.mic.cfg_reg, bytecnt, "mic isdn");
}
printk(KERN_INFO
......
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