aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r--drivers/ide/ide-dma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index 5fe85191d49c..de33e6f88f17 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -792,9 +792,10 @@ int ide_tune_dma(ide_drive_t *drive)
792 if (!speed) 792 if (!speed)
793 return 0; 793 return 0;
794 794
795 drive->hwif->speedproc(drive, speed); 795 if (drive->hwif->speedproc(drive, speed))
796 return 0;
796 797
797 return ide_dma_enable(drive); 798 return 1;
798} 799}
799 800
800EXPORT_SYMBOL_GPL(ide_tune_dma); 801EXPORT_SYMBOL_GPL(ide_tune_dma);