]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ide/pci/pdc202xx_new.c
ide: add ide_set_dma() helper (v2)
[karo-tx-linux.git] / drivers / ide / pci / pdc202xx_new.c
index b780e15e9f321e2c92731efd0b0f8307dfa43c64..6ceb25bc5a7bb1109e22ff804a997dde62d66cc9 100644 (file)
@@ -281,17 +281,15 @@ static int config_chipset_for_dma(ide_drive_t *drive)
 
 static int pdcnew_config_drive_xfer_rate(ide_drive_t *drive)
 {
-       ide_hwif_t *hwif        = HWIF(drive);
-
        drive->init_speed = 0;
 
        if (ide_use_dma(drive) && config_chipset_for_dma(drive))
-               return hwif->ide_dma_on(drive);
+               return 0;
 
        if (ide_use_fast_pio(drive))
-               hwif->tuneproc(drive, 255);
+               pdcnew_tune_drive(drive, 255);
 
-       return hwif->ide_dma_off_quietly(drive);
+       return -1;
 }
 
 static int pdcnew_quirkproc(ide_drive_t *drive)