ppc32: Missing call to ioremap in pci_iomap()
PATCH 1/1 ppc32: Missing call to ioremap in pci_iomap()
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.
Signed-off-by Randy Vinson <[email protected]> Signed-off-by Kumar Gala <[email protected]>
---
arch/ppc/kernel/pci.c +5 -1
@@ -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 ; }
PATCH 1/1 ppc64: Missing call to ioremap in pci_iomap()
Quoted 3 lines · Kumar Gala
The PPC version of
pci_iomapseems to be missing a call to ioremap. This patch corrects that oversight and has been tested on a IBM PPC750FX Eval board.
Looks like the ppc64 version as well !
This patch adds the missing ioremap call to pci_iomap on ppc64.
Signed-off-by Benjamin Herrenschmidt <[email protected]>
arch/ppc64/kernel/iomap.c +1 -1
@@ -113,7 +113,7 @@if (flags &IORESOURCE_IO )return ioport_map (start, len);if (flags &IORESOURCE_MEM ) -return (void __iomem *) start; +return ioremap (start, len);/* What? */ return NULL ; }