]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ide/mips/au1xxx-ide.c
ide: add ide_set_dma() helper (v2)
[karo-tx-linux.git] / drivers / ide / mips / au1xxx-ide.c
index b431b990426d04bd4a5900520e6b48585659341e..8a723c81c4b8c077388471cceb80623d6782818d 100644 (file)
@@ -414,9 +414,9 @@ static int auide_dma_check(ide_drive_t *drive)
        speed = ide_find_best_mode(drive, XFER_PIO | XFER_MWDMA);
        
        if (drive->autodma && (speed & XFER_MODE) != XFER_PIO)
-               return HWIF(drive)->ide_dma_on(drive);
+               return 0;
 
-       return HWIF(drive)->ide_dma_off_quietly(drive);
+       return -1;
 }
 
 static int auide_dma_test_irq(ide_drive_t *drive)