diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-19 18:32:33 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-19 18:32:33 -0400 |
commit | 9239b333939dd1e5b1a9f033a1c136273d58efe8 (patch) | |
tree | c7eb49e04a549ea709cd98ddf6df66a091a062d6 /drivers/ide/arm | |
parent | 18e181fe13b7340194d09e6dd7f571a5f96f0367 (diff) |
ide: remove write-only hwif->hw
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/arm')
-rw-r--r-- | drivers/ide/arm/icside.c | 5 | ||||
-rw-r--r-- | drivers/ide/arm/rapide.c | 4 |
2 files changed, 1 insertions, 8 deletions
diff --git a/drivers/ide/arm/icside.c b/drivers/ide/arm/icside.c index 22fc46d63448..410a0d13e35e 100644 --- a/drivers/ide/arm/icside.c +++ b/drivers/ide/arm/icside.c | |||
@@ -450,8 +450,6 @@ icside_setup(void __iomem *base, struct cardinfo *info, struct expansion_card *e | |||
450 | if (hwif) { | 450 | if (hwif) { |
451 | int i; | 451 | int i; |
452 | 452 | ||
453 | memset(&hwif->hw, 0, sizeof(hw_regs_t)); | ||
454 | |||
455 | /* | 453 | /* |
456 | * Ensure we're using MMIO | 454 | * Ensure we're using MMIO |
457 | */ | 455 | */ |
@@ -459,13 +457,10 @@ icside_setup(void __iomem *base, struct cardinfo *info, struct expansion_card *e | |||
459 | hwif->mmio = 1; | 457 | hwif->mmio = 1; |
460 | 458 | ||
461 | for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) { | 459 | for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) { |
462 | hwif->hw.io_ports[i] = port; | ||
463 | hwif->io_ports[i] = port; | 460 | hwif->io_ports[i] = port; |
464 | port += 1 << info->stepping; | 461 | port += 1 << info->stepping; |
465 | } | 462 | } |
466 | hwif->hw.io_ports[IDE_CONTROL_OFFSET] = (unsigned long)base + info->ctrloffset; | ||
467 | hwif->io_ports[IDE_CONTROL_OFFSET] = (unsigned long)base + info->ctrloffset; | 463 | hwif->io_ports[IDE_CONTROL_OFFSET] = (unsigned long)base + info->ctrloffset; |
468 | hwif->hw.irq = ec->irq; | ||
469 | hwif->irq = ec->irq; | 464 | hwif->irq = ec->irq; |
470 | hwif->noprobe = 0; | 465 | hwif->noprobe = 0; |
471 | hwif->chipset = ide_acorn; | 466 | hwif->chipset = ide_acorn; |
diff --git a/drivers/ide/arm/rapide.c b/drivers/ide/arm/rapide.c index 96cd3f5b9adc..0775a3afef48 100644 --- a/drivers/ide/arm/rapide.c +++ b/drivers/ide/arm/rapide.c | |||
@@ -24,13 +24,11 @@ rapide_locate_hwif(void __iomem *base, void __iomem *ctrl, unsigned int sz, int | |||
24 | goto out; | 24 | goto out; |
25 | 25 | ||
26 | for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) { | 26 | for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) { |
27 | hwif->hw.io_ports[i] = port; | ||
28 | hwif->io_ports[i] = port; | 27 | hwif->io_ports[i] = port; |
29 | port += sz; | 28 | port += sz; |
30 | } | 29 | } |
31 | hwif->hw.io_ports[IDE_CONTROL_OFFSET] = (unsigned long)ctrl; | ||
32 | hwif->io_ports[IDE_CONTROL_OFFSET] = (unsigned long)ctrl; | 30 | hwif->io_ports[IDE_CONTROL_OFFSET] = (unsigned long)ctrl; |
33 | hwif->hw.irq = hwif->irq = irq; | 31 | hwif->irq = irq; |
34 | hwif->mmio = 1; | 32 | hwif->mmio = 1; |
35 | default_hwif_mmiops(hwif); | 33 | default_hwif_mmiops(hwif); |
36 | out: | 34 | out: |