patch-2.1.71 linux/drivers/block/pdc4030.c

Next file: linux/drivers/block/qd6580.c
Previous file: linux/drivers/block/opti621.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.70/linux/drivers/block/pdc4030.c linux/drivers/block/pdc4030.c
@@ -169,8 +169,10 @@
             default:   hwif->irq = 15; break;
 	}
 	printk("on IRQ %d\n",hwif->irq);
-	hwif->chipset    = second_hwif->chipset    = ide_pdc4030;
-	hwif->selectproc = second_hwif->selectproc = &promise_selectproc;
+	hwif->chipset     = second_hwif->chipset    = ide_pdc4030;
+	hwif->mate        = second_hwif;
+	second_hwif->mate = hwif;
+	hwif->selectproc  = second_hwif->selectproc = &promise_selectproc;
 /* Shift the remaining interfaces down by one */
 	for (i=MAX_HWIFS-1 ; i > hwif->index+1 ; i--) {
 		ide_hwif_t *h = &ide_hwifs[i];

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov