aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-dma.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:37 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-13 15:39:37 -0400
commite4634d4ef04fe6d7b114b612e5b71a84187ce76a (patch)
tree5dee4fbce3bfd0d44d21a469040a3eb912fdfde3 /drivers/ide/ide-dma.c
parent0ae4b3199ab1b6d511c6e0948e92049c272a346a (diff)
ide: remove superfluous ->dma field from ide_hwif_t
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r--drivers/ide/ide-dma.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index 2dacd802c72c..1185f5a4c154 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -525,7 +525,6 @@ void ide_dma_start(ide_drive_t *drive)
525 outb(dma_cmd | 1, hwif->dma_base + ATA_DMA_CMD); 525 outb(dma_cmd | 1, hwif->dma_base + ATA_DMA_CMD);
526 } 526 }
527 527
528 hwif->dma = 1;
529 wmb(); 528 wmb();
530} 529}
531 530
@@ -564,7 +563,6 @@ int __ide_dma_end (ide_drive_t *drive)
564 /* purge DMA mappings */ 563 /* purge DMA mappings */
565 ide_destroy_dmatable(drive); 564 ide_destroy_dmatable(drive);
566 /* verify good DMA status */ 565 /* verify good DMA status */
567 hwif->dma = 0;
568 wmb(); 566 wmb();
569 return (dma_stat & 7) != 4 ? (0x10 | dma_stat) : 0; 567 return (dma_stat & 7) != 4 ? (0x10 | dma_stat) : 0;
570} 568}