aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers
diff options
context:
space:
mode:
authorMagnus Damm <magnus.damm@gmail.com>2008-02-19 07:35:22 -0500
committerPaul Mundt <lethal@linux-sh.org>2009-04-16 03:00:14 -0400
commitef339f241b08a16af58897e6288ba200e0c7a8c7 (patch)
tree6e9984ccbccc87017c3beb97567002926b5ae549 /arch/sh/drivers
parentef53fdeb7e0cb139aff33665635b886700137abb (diff)
sh: pci memory range checking code
This patch changes the code to use __is_pci_memory() instead of is_pci_memaddr(). __is_pci_memory() loops through all the pci channels on the system to match memory windows. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers')
-rw-r--r--arch/sh/drivers/pci/pci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c
index 29ec16e69afa..b9aca5478048 100644
--- a/arch/sh/drivers/pci/pci.c
+++ b/arch/sh/drivers/pci/pci.c
@@ -167,9 +167,8 @@ void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)
167 /* 167 /*
168 * Presently the IORESOURCE_MEM case is a bit special, most 168 * Presently the IORESOURCE_MEM case is a bit special, most
169 * SH7751 style PCI controllers have PCI memory at a fixed 169 * SH7751 style PCI controllers have PCI memory at a fixed
170 * location in the address space where no remapping is desired 170 * location in the address space where no remapping is desired.
171 * (typically at 0xfd000000, but is_pci_memaddr() will know 171 * With the IORESOURCE_MEM case more care has to be taken
172 * best). With the IORESOURCE_MEM case more care has to be taken
173 * to inhibit page table mapping for legacy cores, but this is 172 * to inhibit page table mapping for legacy cores, but this is
174 * punted off to __ioremap(). 173 * punted off to __ioremap().
175 * -- PFM. 174 * -- PFM.