ide: add ide_set{_max}_pio() (take 4)
[deliverable/linux.git] / drivers / ide / legacy / dtc2278.c
index 0219ffa64db663fae60e8bc3e994e1d76bd048c7..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, NULL);
-
        if (pio >= 3) {
                spin_lock_irqsave(&ide_lock, flags);
                /*
@@ -123,7 +121,8 @@ static int __init dtc2278_probe(void)
 
        hwif->serialized = 1;
        hwif->chipset = ide_dtc2278;
-       hwif->tuneproc = &tune_dtc2278;
+       hwif->pio_mask = ATA_PIO4;
+       hwif->set_pio_mode = &dtc2278_set_pio_mode;
        hwif->drives[0].no_unmask = 1;
        hwif->drives[1].no_unmask = 1;
        hwif->mate = mate;
@@ -138,7 +137,8 @@ static int __init dtc2278_probe(void)
        probe_hwif_init(hwif);
        probe_hwif_init(mate);
 
-       create_proc_ide_interfaces();
+       ide_proc_register_port(hwif);
+       ide_proc_register_port(mate);
 
        return 0;
 }
This page took 0.030519 seconds and 5 git commands to generate.