]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Amiga Gayle IDE fixes
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 14 Apr 2003 06:45:37 +0000 (23:45 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 14 Apr 2003 06:45:37 +0000 (23:45 -0700)
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

index 883aaf7975ade12d274291ef0a537224b2bb5f8d..744bc87e2b06a0e754f27f1b478e1cee476dcca1 100644 (file)
@@ -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,