aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-iops.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:55 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:55 -0400
commitba4b2e607e4e9eaa929935325dafd5c86d3b5262 (patch)
treea1467b1bf355758d74343cc708c7f6fa70400faf /drivers/ide/ide-iops.c
parent472b4bc1af50431e08130c786ef0612f5b641839 (diff)
ide: remove dead Virtual DMA support
Lets remove dead Virtual DMA support for now so it doesn't clutter core IDE code (it can be bring back when there is a need for it): * Remove IDE_HFLAG_VDMA host flag. * Remove ide_drive_t.vdma flag. * cs5520.c: remove stale FIXMEs, cs5520_dma_host_set() and cs5520_dma_ops (also there is no longer a need to set IDE_HFLAG_NO_ATAPI_DMA). There should be no functional changes caused by this patch. Cc: TAKADA Yoshihito <takada@mbf.nifty.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r--drivers/ide/ide-iops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
index 6c54fe1f9841..c9d15be4c48d 100644
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -866,8 +866,7 @@ int ide_config_drive_speed(ide_drive_t *drive, u8 speed)
866 866
867 skip: 867 skip:
868#ifdef CONFIG_BLK_DEV_IDEDMA 868#ifdef CONFIG_BLK_DEV_IDEDMA
869 if ((speed >= XFER_SW_DMA_0 || (hwif->host_flags & IDE_HFLAG_VDMA)) && 869 if (speed >= XFER_SW_DMA_0 && drive->using_dma)
870 drive->using_dma)
871 hwif->dma_ops->dma_host_set(drive, 1); 870 hwif->dma_ops->dma_host_set(drive, 1);
872 else if (hwif->dma_ops) /* check if host supports DMA */ 871 else if (hwif->dma_ops) /* check if host supports DMA */
873 ide_dma_off_quietly(drive); 872 ide_dma_off_quietly(drive);