RESEND: [PATCH][PPC32] Missing call to ioremap in pci_iomap()]

From: Randy Vinson
Date: Fri Jan 21 2005 - 17:49:17 EST


Greetings,
The PPC version of pci_iomap seems to be missing a call to ioremap.
This patch corrects that oversight and has been tested on a IBM PPC750FX
Eval board. Please apply. Thanks.

Signed-off-by Randy Vinson <rvinson@xxxxxxxxxx>


===== arch/ppc/kernel/pci.c 1.48 vs edited =====
--- 1.48/arch/ppc/kernel/pci.c Wed Oct 20 01:37:05 2004
+++ edited/arch/ppc/kernel/pci.c Wed Jan 12 11:19:14 2005
@@ -1712,7 +1712,11 @@
if (flags & IORESOURCE_IO)
return ioport_map(start, len);
if (flags & IORESOURCE_MEM)
- return (void __iomem *) start;
+ /* Not checking IORESOURCE_CACHEABLE because PPC does
+ * not currently distinguish between ioremap and
+ * ioremap_nocache.
+ */
+ return ioremap(start, len);
/* What? */
return NULL;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/