patch-2.4.7 linux/drivers/ide/piix.c

Next file: linux/drivers/ide/slc90e66.c
Previous file: linux/drivers/ide/pdc4030.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/drivers/ide/piix.c linux/drivers/ide/piix.c
@@ -516,7 +516,8 @@
 	hwif->autodma = 0;
 #else /* CONFIG_BLK_DEV_IDEDMA */
 #ifdef CONFIG_PIIX_TUNING
-	hwif->autodma = 1;
+	if (!noautodma)
+		hwif->autodma = 1;
 	hwif->dmaproc = &piix_dmaproc;
 	hwif->speedproc = &piix_tune_chipset;
 #endif /* CONFIG_PIIX_TUNING */

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