ide: add ide_set_dma() helper (v2)
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / ide / cris / ide-cris.c
index 24281176b4dcec4d37d776944a6bf93a215c7ce7..027341d66b28efcbb6e62caa800f73b697a0de1b 100644 (file)
@@ -1048,12 +1048,10 @@ static ide_startstop_t cris_dma_intr (ide_drive_t *drive)
 
 static int cris_dma_check(ide_drive_t *drive)
 {
-       ide_hwif_t *hwif = drive->hwif;
-
        if (ide_use_dma(drive) && cris_config_drive_for_dma(drive))
-               return hwif->ide_dma_on(drive);
+               return 0;
 
-       return hwif->ide_dma_off_quietly(drive);
+       return -1;
 }
 
 static int cris_dma_end(ide_drive_t *drive)