patch-2.0.11 linux/drivers/block/qd6580.c

Next file: linux/drivers/block/rz1000.c
Previous file: linux/drivers/block/ide_modes.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.10/linux/drivers/block/qd6580.c linux/drivers/block/qd6580.c
@@ -47,10 +47,7 @@
 {
 	unsigned long flags;
 
-	if (pio == 255)
-		pio = ide_get_best_pio_mode (drive);
-	if (pio > 3)
-		pio = 3;
+	pio = ide_get_best_pio_mode(drive, pio, 3, NULL);
 
 	save_flags(flags);
 	cli();

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