ide: add ide_set{_max}_pio() (take 4)
[deliverable/linux.git] / drivers / ide / legacy / dtc2278.c
index 6c01d951d074cacb7ef9c4e4b6fc68f424ec8adc..f165212548673729f412bbfb031aea67ba20c49c 100644 (file)
@@ -67,12 +67,10 @@ static void sub22 (char b, char c)
        }
 }
 
-static void tune_dtc2278 (ide_drive_t *drive, u8 pio)
+static void dtc2278_set_pio_mode(ide_drive_t *drive, const u8 pio)
 {
        unsigned long flags;
 
-       pio = ide_get_best_pio_mode(drive, pio, 4);
-
        if (pio >= 3) {
                spin_lock_irqsave(&ide_lock, flags);
                /*
@@ -124,7 +122,7 @@ static int __init dtc2278_probe(void)
        hwif->serialized = 1;
        hwif->chipset = ide_dtc2278;
        hwif->pio_mask = ATA_PIO4;
-       hwif->tuneproc = &tune_dtc2278;
+       hwif->set_pio_mode = &dtc2278_set_pio_mode;
        hwif->drives[0].no_unmask = 1;
        hwif->drives[1].no_unmask = 1;
        hwif->mate = mate;
This page took 0.026178 seconds and 5 git commands to generate.