From df27e7783d21c94a19eac13dc6b974b590d3e178 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Sun, 13 Apr 2003 23:45:37 -0700 Subject: [PATCH] [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 --- drivers/ide/legacy/gayle.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/ide/legacy/gayle.c b/drivers/ide/legacy/gayle.c index 883aaf7975ade..744bc87e2b06a 100644 --- a/drivers/ide/legacy/gayle.c +++ b/drivers/ide/legacy/gayle.c @@ -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, -- 2.53.0