patch-2.4.25 linux-2.4.25/drivers/ide/legacy/buddha.c

Next file: linux-2.4.25/drivers/ide/legacy/gayle.c
Previous file: linux-2.4.25/drivers/ide/ide.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/drivers/ide/legacy/buddha.c linux-2.4.25/drivers/ide/legacy/buddha.c
@@ -146,6 +146,7 @@
 void __init buddha_init(void)
 {
 	hw_regs_t hw;
+	ide_hwif_t *hwif;
 	int i, index;
 
 	struct zorro_dev *z = NULL;
@@ -212,8 +213,9 @@
 						IRQ_AMIGA_PORTS);
 			}	
 			
-			index = ide_register_hw(&hw, NULL);
+			index = ide_register_hw(&hw, &hwif);
 			if (index != -1) {
+				hwif->mmio = 2;
 				printk("ide%d: ", index);
 				switch(type) {
 				case BOARD_BUDDHA:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)