All of lore.kernel.org
 help / color / mirror / Atom feed
* RESEND: [PATCH][PPC32] Missing call to ioremap in pci_iomap()]
@ 2005-01-21 23:02 Randy Vinson
  0 siblings, 0 replies; only message in thread
From: Randy Vinson @ 2005-01-21 23:02 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

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@mvista.com>


===== 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;
  }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-21 22:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-21 23:02 RESEND: [PATCH][PPC32] Missing call to ioremap in pci_iomap()] Randy Vinson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.