]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-dma.c
SPI: Add support for TSC2101
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-dma.c
index 08e7cd043bccc9f9a7937276431f25130b3d7509..fd213088b06b4a467afc8222a87fd634f100cfe3 100644 (file)
@@ -767,7 +767,7 @@ int ide_set_dma(ide_drive_t *drive)
        switch(rc) {
        case -1: /* DMA needs to be disabled */
                hwif->dma_off_quietly(drive);
-               return 0;
+               return -1;
        case  0: /* DMA needs to be enabled */
                return hwif->ide_dma_on(drive);
        case  1: /* DMA setting cannot be changed */