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

Next file: linux/drivers/block/ide-cd.c
Previous file: linux/drivers/block/floppy.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.10/linux/drivers/block/ht6560b.c linux/drivers/block/ht6560b.c
@@ -201,10 +201,8 @@
 		if (drive->media != ide_disk)
 			pio = 0; /* some cdroms don't like fast modes (?) */
 		else
-			pio = ide_get_best_pio_mode (drive);
+			pio = ide_get_best_pio_mode(drive, pio, 5, NULL);
 	}
-	if (pio > 5)
-		pio = 5;
 	unit = drive->select.b.unit;
 	hwif = HWIF(drive)->index;
 	ht6560b_timings[hwif][unit] = pio_to_timings[pio];

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