X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Fasm-sparc64%2Fparport.h;h=ab88349ddadc71e39a72e7fa6b32baeb32bb2362;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=676f67e3f9b7e7f2ccf6cc0503fed26a37be6b6d;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/asm-sparc64/parport.h b/include/asm-sparc64/parport.h index 676f67e3f..ab88349dd 100644 --- a/include/asm-sparc64/parport.h +++ b/include/asm-sparc64/parport.h @@ -126,10 +126,14 @@ static int parport_pc_find_nonpci_ports (int autoirq, int autodma) if (ebus_ecpp_p(edev)) { unsigned long base = edev->resource[0].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); + d_len = (edev->resource[2].end - + d_base) + 1; sparc_ebus_dmas[count].info.regs = - edev->resource[2].start; + ioremap(d_base, d_len); if (!sparc_ebus_dmas[count].info.regs) continue; sparc_ebus_dmas[count].info.flags = 0;