diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-19 07:35:22 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-16 03:00:14 -0400 |
commit | ef339f241b08a16af58897e6288ba200e0c7a8c7 (patch) | |
tree | 6e9984ccbccc87017c3beb97567002926b5ae549 /arch/sh/boards | |
parent | ef53fdeb7e0cb139aff33665635b886700137abb (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/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 4badad4c6f30..053b3ed2ed8d 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) | |||
117 | 117 | ||
118 | void __iomem *titan_ioport_map(unsigned long port, unsigned int size) | 118 | void __iomem *titan_ioport_map(unsigned long port, unsigned int size) |
119 | { | 119 | { |
120 | if (PXSEG(port) || is_pci_memaddr(port)) | 120 | if (PXSEG(port)) |
121 | return (void __iomem *)port; | 121 | return (void __iomem *)port; |
122 | else if (is_pci_ioaddr(port)) | 122 | else if (is_pci_ioaddr(port)) |
123 | return (void __iomem *)pci_ioaddr(port); | 123 | return (void __iomem *)pci_ioaddr(port); |