]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ide/pci/siimage.c
ide: add ide_set_dma() helper (v2)
[karo-tx-linux.git] / drivers / ide / pci / siimage.c
index 1e5b8b17e6d8ef4f8ba9ba8cc57b08745c1b3671..7b4c189a9d99c81384a8500ca7c339995b495f07 100644 (file)
@@ -414,15 +414,13 @@ static int config_chipset_for_dma (ide_drive_t *drive)
  
 static int siimage_config_drive_for_dma (ide_drive_t *drive)
 {
-       ide_hwif_t *hwif        = HWIF(drive);
-
        if (ide_use_dma(drive) && config_chipset_for_dma(drive))
-               return hwif->ide_dma_on(drive);
+               return 0;
 
        if (ide_use_fast_pio(drive))
                config_chipset_for_pio(drive, 1);
 
-       return hwif->ide_dma_off_quietly(drive);
+       return -1;
 }
 
 /* returns 1 if dma irq issued, 0 otherwise */