Commit 71fc77af authored by David S. Miller's avatar David S. Miller

[SPARC64]: Missing ioremap() in parport support.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1e7f9d0c
...@@ -126,10 +126,14 @@ static int parport_pc_find_nonpci_ports (int autoirq, int autodma) ...@@ -126,10 +126,14 @@ static int parport_pc_find_nonpci_ports (int autoirq, int autodma)
if (ebus_ecpp_p(edev)) { if (ebus_ecpp_p(edev)) {
unsigned long base = edev->resource[0].start; unsigned long base = edev->resource[0].start;
unsigned long config = edev->resource[1].start; unsigned long config = edev->resource[1].start;
unsigned long d_base = edev->resource[2].start;
unsigned long d_len;
spin_lock_init(&sparc_ebus_dmas[count].info.lock); spin_lock_init(&sparc_ebus_dmas[count].info.lock);
d_len = (edev->resource[2].end -
d_base) + 1;
sparc_ebus_dmas[count].info.regs = sparc_ebus_dmas[count].info.regs =
edev->resource[2].start; ioremap(d_base, d_len);
if (!sparc_ebus_dmas[count].info.regs) if (!sparc_ebus_dmas[count].info.regs)
continue; continue;
sparc_ebus_dmas[count].info.flags = 0; sparc_ebus_dmas[count].info.flags = 0;
......
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