Commit 764a27db authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] remove check_region from drivers_ide_legacy_umc8672.c

From:  william stinson <wstinson@wanadoo.fr>

  this patch for drivers/ide/legacy/umc8672.c ide driver for Linux
  removes one call to check_region using request_region instead

  I don't have this hardware so patch is not tested.  This patch removes
  all references to check_region in this driver.

  This is patch number 31 in a series of check_region patches I am doing as
   part of the kernel janitors project.
parent ca7f949f
......@@ -137,7 +137,7 @@ int __init probe_umc8672 (void)
unsigned long flags;
local_irq_save(flags);
if (check_region(0x108, 2)) {
if (!request_region(0x108, 2, "umc8672")) {
local_irq_restore(flags);
printk(KERN_ERR "umc8672: ports 0x108-0x109 already in use.\n");
return 1;
......@@ -146,6 +146,7 @@ int __init probe_umc8672 (void)
if (in_umc (0xd5) != 0xa0) {
local_irq_restore(flags);
printk(KERN_ERR "umc8672: not found\n");
release_region(0x108, 2);
return 1;
}
outb_p(0xa5,0x108); /* disable umc */
......@@ -153,7 +154,6 @@ int __init probe_umc8672 (void)
umc_set_speeds (current_speeds);
local_irq_restore(flags);
request_region(0x108, 2, "umc8672");
ide_hwifs[0].chipset = ide_umc8672;
ide_hwifs[1].chipset = ide_umc8672;
ide_hwifs[0].tuneproc = &tune_umc;
......
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