Commit 75bfe560 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] add checks to pc9800 ide reserve

parent 88b6bfe5
...@@ -64,9 +64,13 @@ void __init ide_probe_for_pc9800(void) ...@@ -64,9 +64,13 @@ void __init ide_probe_for_pc9800(void)
/* Restore original value, just in case. */ /* Restore original value, just in case. */
outb(saved_bank, PC9800_IDE_BANKSELECT); outb(saved_bank, PC9800_IDE_BANKSELECT);
/* These ports are probably used by IDE I/F. */ /* These ports are reseved by IDE I/F. */
request_region(0x430, 1, "ide"); if (!request_region(0x430, 1, "ide") ||
request_region(0x435, 1, "ide"); !request_region(0x435, 1, "ide")) {
printk(KERN_WARNING
"ide: IO port 0x430 and 0x435 are reserved for IDE"
" the card using these ports may not work\n");
}
if (ide_hwifs[0].io_ports[IDE_DATA_OFFSET] == HD_DATA && if (ide_hwifs[0].io_ports[IDE_DATA_OFFSET] == HD_DATA &&
ide_hwifs[1].io_ports[IDE_DATA_OFFSET] == HD_DATA) { ide_hwifs[1].io_ports[IDE_DATA_OFFSET] == HD_DATA) {
......
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