]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ide/pci/pdc202xx_old.c
ide: add ide_set_dma() helper (v2)
[karo-tx-linux.git] / drivers / ide / pci / pdc202xx_old.c
index b2b8e6ea7e90a718ca1c6bcb51ace2030f9f72a6..a7a639fe1eaff2b4540f52160afc8163f1eef35f 100644 (file)
@@ -322,17 +322,15 @@ chipset_is_set:
 
 static int pdc202xx_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))
                pdc202xx_tune_drive(drive, 255);
 
-       return hwif->ide_dma_off_quietly(drive);
+       return -1;
 }
 
 static int pdc202xx_quirkproc (ide_drive_t *drive)