]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ide/ppc/scc_pata.c
ide: disable DMA in ->ide_dma_check for "no IORDY" case (v2)
[karo-tx-linux.git] / drivers / ide / ppc / scc_pata.c
index f05117e8fdb955dd56a157b0c8454bfc19acd777..7e3e93caafd0030e51f83dae00f51fa914a68d9f 100644 (file)
@@ -376,11 +376,10 @@ static int scc_config_drive_for_dma(ide_drive_t *drive)
        if (ide_use_dma(drive) && scc_config_chipset_for_dma(drive))
                return hwif->ide_dma_on(drive);
 
-       if (ide_use_fast_pio(drive)) {
+       if (ide_use_fast_pio(drive))
                hwif->tuneproc(drive, 4);
-               hwif->ide_dma_off_quietly(drive);
-       }
-       return 1; /* DMA is not supported */
+
+       return hwif->ide_dma_off_quietly(drive);
 }
 
 /**