diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-28 17:44:42 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-28 17:44:42 -0400 |
commit | 41051a141dcc67f4c5011a2ab2b547e80b9ac509 (patch) | |
tree | 8b89b621964f26b2bf42c31478f4122d6145172e /drivers/ide/pci/pdc202xx_new.c | |
parent | 669185e98c242fa4dcd68cf11899412da1a70dd7 (diff) |
ide: remove ->dma_vendor{1,3} fields from ide_hwif_t
* Use 'hwif->dma_base + {1,3}' instead of hwif->dma_vendor{1,3} in
pdc202xx_new host driver.
* Remove no longer needed ->dma_vendor{1,3} fields 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/pci/pdc202xx_new.c')
-rw-r--r-- | drivers/ide/pci/pdc202xx_new.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c index ec9bd7b352fc..070df8ab3b21 100644 --- a/drivers/ide/pci/pdc202xx_new.c +++ b/drivers/ide/pci/pdc202xx_new.c | |||
@@ -83,8 +83,8 @@ static u8 get_indexed_reg(ide_hwif_t *hwif, u8 index) | |||
83 | { | 83 | { |
84 | u8 value; | 84 | u8 value; |
85 | 85 | ||
86 | outb(index, hwif->dma_vendor1); | 86 | outb(index, hwif->dma_base + 1); |
87 | value = inb(hwif->dma_vendor3); | 87 | value = inb(hwif->dma_base + 3); |
88 | 88 | ||
89 | DBG("index[%02X] value[%02X]\n", index, value); | 89 | DBG("index[%02X] value[%02X]\n", index, value); |
90 | return value; | 90 | return value; |
@@ -97,8 +97,8 @@ static u8 get_indexed_reg(ide_hwif_t *hwif, u8 index) | |||
97 | */ | 97 | */ |
98 | static void set_indexed_reg(ide_hwif_t *hwif, u8 index, u8 value) | 98 | static void set_indexed_reg(ide_hwif_t *hwif, u8 index, u8 value) |
99 | { | 99 | { |
100 | outb(index, hwif->dma_vendor1); | 100 | outb(index, hwif->dma_base + 1); |
101 | outb(value, hwif->dma_vendor3); | 101 | outb(value, hwif->dma_base + 3); |
102 | DBG("index[%02X] value[%02X]\n", index, value); | 102 | DBG("index[%02X] value[%02X]\n", index, value); |
103 | } | 103 | } |
104 | 104 | ||