diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:05 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:05 -0500 |
commit | 1c029fd658baa2442e8e51dc9c819301cad95777 (patch) | |
tree | fbbfe6bb774001c9346ea0f772e5f4b0d469b989 /drivers/ide/ide-dma.c | |
parent | 866664d79f6a920af07e6503f64366f4c5b2d41f (diff) |
ide: remove ->dma_master field from ide_hwif_t (take 5)
* Convert cmd64x, hpt366 and pdc202xx_old host drivers to use
pci_resource_start(hwif->pci_dev, 4) instead of hwif->dma_master.
* Remove no longer needed ->dma_master field from ide_hwif_t.
v2:
* Use the more readable 'hwif->dma_base - (hwif->channel * 8)' instead of
pci_resource_start(hwif->pci_dev, 4).
v3:
* Use hwif->extra_base in hpt366/pdc20xx_old + some cosmetic fixups over v2
(suggested by Sergei).
v4:
* Correct offsets in hpt3xxn_set_clock().
v5:
* Use hwif->extra_base in hpt366 for _real_ this time. (Noticed by Sergei)
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r-- | drivers/ide/ide-dma.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index 4703837bf1fc..7568c3e81f2f 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c | |||
@@ -968,11 +968,6 @@ void ide_setup_dma(ide_hwif_t *hwif, unsigned long base, unsigned num_ports) | |||
968 | 968 | ||
969 | hwif->dma_base = base; | 969 | hwif->dma_base = base; |
970 | 970 | ||
971 | if (hwif->mate) | ||
972 | hwif->dma_master = hwif->channel ? hwif->mate->dma_base : base; | ||
973 | else | ||
974 | hwif->dma_master = base; | ||
975 | |||
976 | if (!(hwif->dma_command)) | 971 | if (!(hwif->dma_command)) |
977 | hwif->dma_command = hwif->dma_base; | 972 | hwif->dma_command = hwif->dma_base; |
978 | if (!(hwif->dma_vendor1)) | 973 | if (!(hwif->dma_vendor1)) |
@@ -1014,8 +1009,6 @@ void ide_setup_dma(ide_hwif_t *hwif, unsigned long base, unsigned num_ports) | |||
1014 | hwif->drives[1].name, (dma_stat & 0x40) ? "DMA" : "pio"); | 1009 | hwif->drives[1].name, (dma_stat & 0x40) ? "DMA" : "pio"); |
1015 | } | 1010 | } |
1016 | printk("\n"); | 1011 | printk("\n"); |
1017 | |||
1018 | BUG_ON(!hwif->dma_master); | ||
1019 | } | 1012 | } |
1020 | 1013 | ||
1021 | EXPORT_SYMBOL_GPL(ide_setup_dma); | 1014 | EXPORT_SYMBOL_GPL(ide_setup_dma); |