]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ide/pci/hpt366.c
ide: add ide_set_dma() helper (v2)
[karo-tx-linux.git] / drivers / ide / pci / hpt366.c
index 752b6d6dde040adb7322e0dad59fb62b2bd2f213..60ecdc258c7cbc1272edff2082c0e97c17ba98d4 100644 (file)
@@ -736,17 +736,15 @@ static void hpt3xx_maskproc(ide_drive_t *drive, int mask)
 
 static int hpt366_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))
                hpt3xx_tune_drive(drive, 255);
 
-       return hwif->ide_dma_off_quietly(drive);
+       return -1;
 }
 
 /*