diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-19 21:35:22 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-16 16:00:14 +0900 |
commit | ef339f241b08a16af58897e6288ba200e0c7a8c7 (patch) | |
tree | 6e9984ccbccc87017c3beb97567002926b5ae549 /arch/sh/boards | |
parent | ef53fdeb7e0cb139aff33665635b886700137abb (diff) | |
download | op-kernel-dev-ef339f241b08a16af58897e6288ba200e0c7a8c7.zip op-kernel-dev-ef339f241b08a16af58897e6288ba200e0c7a8c7.tar.gz |
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/boards')
-rw-r--r-- | arch/sh/boards/mach-titan/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/boards/mach-titan/io.c b/arch/sh/boards/mach-titan/io.c index 4badad4..053b3ed 100644 --- a/arch/sh/boards/mach-titan/io.c +++ b/arch/sh/boards/mach-titan/io.c @@ -117,7 +117,7 @@ void titan_outsl(unsigned long port, const void *src, unsigned long count) void __iomem *titan_ioport_map(unsigned long port, unsigned int size) { - if (PXSEG(port) || is_pci_memaddr(port)) + if (PXSEG(port)) return (void __iomem *)port; else if (is_pci_ioaddr(port)) return (void __iomem *)pci_ioaddr(port); |