Commit df27e778 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] Amiga Gayle IDE fixes

Amiga Gayle IDE fixes: Set hwif->mmio to 2 to prevent the generic IDE core from
messing with our resources
parent fdff3db6
......@@ -125,6 +125,7 @@ void __init gayle_init(void)
unsigned long base, ctrlport, irqport;
ide_ack_intr_t *ack_intr;
hw_regs_t hw;
ide_hwif_t *hwif;
int index;
unsigned long phys_base, res_start, res_n;
......@@ -154,11 +155,12 @@ void __init gayle_init(void)
ide_setup_ports(&hw, base, gayle_offsets,
ctrlport, irqport, ack_intr,
// gaule_iops,
// &gayle_iops,
IRQ_AMIGA_PORTS);
index = ide_register_hw(&hw, NULL);
index = ide_register_hw(&hw, &hwif);
if (index != -1) {
hwif->mmio = 2;
switch (i) {
case 0:
printk("ide%d: Gayle IDE interface (A%d style)\n", index,
......
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