diff options
Diffstat (limited to 'drivers/ide/mips/au1xxx-ide.c')
-rw-r--r-- | drivers/ide/mips/au1xxx-ide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c index b431b990426d..8a723c81c4b8 100644 --- a/drivers/ide/mips/au1xxx-ide.c +++ b/drivers/ide/mips/au1xxx-ide.c | |||
@@ -414,9 +414,9 @@ static int auide_dma_check(ide_drive_t *drive) | |||
414 | speed = ide_find_best_mode(drive, XFER_PIO | XFER_MWDMA); | 414 | speed = ide_find_best_mode(drive, XFER_PIO | XFER_MWDMA); |
415 | 415 | ||
416 | if (drive->autodma && (speed & XFER_MODE) != XFER_PIO) | 416 | if (drive->autodma && (speed & XFER_MODE) != XFER_PIO) |
417 | return HWIF(drive)->ide_dma_on(drive); | 417 | return 0; |
418 | 418 | ||
419 | return HWIF(drive)->ide_dma_off_quietly(drive); | 419 | return -1; |
420 | } | 420 | } |
421 | 421 | ||
422 | static int auide_dma_test_irq(ide_drive_t *drive) | 422 | static int auide_dma_test_irq(ide_drive_t *drive) |