summaryrefslogtreecommitdiff
path: root/drivers/ide/ide-iops.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 21:55:51 +0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 21:55:51 +0400
commitcab7f8eda40d3e3e16b137c67cdddc2cf893c5d7 (patch)
tree369335f0bc359357653fb2271c67940840eedced /drivers/ide/ide-iops.c
parentab86f91e8739e0b1587a16e4792ab5e4bb11f1b5 (diff)
downloadlinux-cab7f8eda40d3e3e16b137c67cdddc2cf893c5d7.tar.xz
ide: remove ->dma_{status,command} fields from ide_hwif_t
* Use ->dma_base + offset instead of ->dma_{status,command} and remove no longer needed ->dma_{status,command}. While at it: * Use ATA_DMA_* defines. There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r--drivers/ide/ide-iops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
index a09bf4369ed8..17cad6c39ee3 100644
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -106,9 +106,9 @@ void SELECT_MASK(ide_drive_t *drive, int mask)
static u8 ide_read_sff_dma_status(ide_hwif_t *hwif)
{
if (hwif->host_flags & IDE_HFLAG_MMIO)
- return readb((void __iomem *)hwif->dma_status);
+ return readb((void __iomem *)(hwif->dma_base + ATA_DMA_STATUS));
else
- return inb(hwif->dma_status);
+ return inb(hwif->dma_base + ATA_DMA_STATUS);
}
static void ide_tf_load(ide_drive_t *drive, ide_task_t *task)