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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index 56efed6742d4..941846c21624 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -680,6 +680,9 @@ int ide_use_dma(ide_drive_t *drive)
680 struct hd_driveid *id = drive->id; 680 struct hd_driveid *id = drive->id;
681 ide_hwif_t *hwif = drive->hwif; 681 ide_hwif_t *hwif = drive->hwif;
682 682
683 if ((id->capability & 1) == 0 || drive->autodma == 0)
684 return 0;
685
683 /* consult the list of known "bad" drives */ 686 /* consult the list of known "bad" drives */
684 if (__ide_dma_bad_drive(drive)) 687 if (__ide_dma_bad_drive(drive))
685 return 0; 688 return 0;