Commit 7d896e0b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

more icside breakage (from next ide merge)

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b7505680
...@@ -419,17 +419,19 @@ icside_setup(void __iomem *base, struct cardinfo *info, struct expansion_card *e ...@@ -419,17 +419,19 @@ icside_setup(void __iomem *base, struct cardinfo *info, struct expansion_card *e
hwif = ide_find_port(); hwif = ide_find_port();
if (hwif) { if (hwif) {
int i;
/* /*
* Ensure we're using MMIO * Ensure we're using MMIO
*/ */
default_hwif_mmiops(hwif); default_hwif_mmiops(hwif);
for (i = 0; i <= 7; i++) { hwif->io_ports.data_addr = port;
hwif->io_ports_array[i] = port; hwif->io_ports.error_addr = port + (1 << info->stepping);
port += 1 << info->stepping; hwif->io_ports.nsect_addr = port + (2 << info->stepping);
} hwif->io_ports.lbal_addr = port + (3 << info->stepping);
hwif->io_ports.lbam_addr = port + (4 << info->stepping);
hwif->io_ports.lbah_addr = port + (5 << info->stepping);
hwif->io_ports.device_addr = port + (6 << info->stepping);
hwif->io_ports.status_addr = port + (7 << info->stepping);
hwif->io_ports.ctl_addr = hwif->io_ports.ctl_addr =
(unsigned long)base + info->ctrloffset; (unsigned long)base + info->ctrloffset;
hwif->irq = ec->irq; hwif->irq = ec->irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment