diff options
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r-- | drivers/ide/ide-dma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index ecf60dbbe3e9..e72112efab9a 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c | |||
@@ -756,9 +756,8 @@ static int ide_tune_dma(ide_drive_t *drive) | |||
756 | static int ide_dma_check(ide_drive_t *drive) | 756 | static int ide_dma_check(ide_drive_t *drive) |
757 | { | 757 | { |
758 | ide_hwif_t *hwif = drive->hwif; | 758 | ide_hwif_t *hwif = drive->hwif; |
759 | int vdma = (hwif->host_flags & IDE_HFLAG_VDMA)? 1 : 0; | ||
760 | 759 | ||
761 | if (!vdma && ide_tune_dma(drive)) | 760 | if (ide_tune_dma(drive)) |
762 | return 0; | 761 | return 0; |
763 | 762 | ||
764 | /* TODO: always do PIO fallback */ | 763 | /* TODO: always do PIO fallback */ |
@@ -767,7 +766,7 @@ static int ide_dma_check(ide_drive_t *drive) | |||
767 | 766 | ||
768 | ide_set_max_pio(drive); | 767 | ide_set_max_pio(drive); |
769 | 768 | ||
770 | return vdma ? 0 : -1; | 769 | return -1; |
771 | } | 770 | } |
772 | 771 | ||
773 | int ide_id_dma_bug(ide_drive_t *drive) | 772 | int ide_id_dma_bug(ide_drive_t *drive) |