ide: change ->set_pio_mode method parameters
[deliverable/linux.git] / drivers / ide / cmd64x.c
index 9f89f3116df0e6e783b0840d9f5991486924d847..0b11745937e7c1270e0a9b2362fd0d7c0c3c8d6d 100644 (file)
@@ -127,8 +127,10 @@ static void cmd64x_program_timings(ide_drive_t *drive, u8 mode)
  * Special cases are 8: prefetch off, 9: prefetch on (both never worked)
  */
 
-static void cmd64x_set_pio_mode(ide_drive_t *drive, const u8 pio)
+static void cmd64x_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
 {
+       const u8 pio = drive->pio_mode - XFER_PIO_0;
+
        /*
         * Filter out the prefetch control values
         * to prevent PIO5 from being programmed
This page took 0.027084 seconds and 5 git commands to generate.