summaryrefslogtreecommitdiff
path: root/arch/sh/mm/ioremap_32.c
diff options
context:
space:
mode:
authorStuart Menefy <stuart.menefy@st.com>2009-08-24 09:29:25 (GMT)
committerPaul Mundt <lethal@linux-sh.org>2009-08-24 09:29:25 (GMT)
commita1fce732359b80ead84efba23059a5f1b572b85a (patch)
tree340f92ab28309bad17b5ee232ef30419c528672c /arch/sh/mm/ioremap_32.c
parent6000fc4d6f3e55ad52cce8d76317187fe01af2aa (diff)
downloadlinux-fsl-qoriq-a1fce732359b80ead84efba23059a5f1b572b85a.tar.xz
sh: Fix overzealous checking in __ioremap()
Allow peripherals before the start of RAM to be remapped. Signed-off-by: Stuart Menefy <stuart.menefy@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/ioremap_32.c')
-rw-r--r--arch/sh/mm/ioremap_32.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/sh/mm/ioremap_32.c b/arch/sh/mm/ioremap_32.c
index da2f418..c325061 100644
--- a/arch/sh/mm/ioremap_32.c
+++ b/arch/sh/mm/ioremap_32.c
@@ -57,14 +57,6 @@ void __iomem *__ioremap(unsigned long phys_addr, unsigned long size,
if (is_pci_memory_fixed_range(phys_addr, size))
return (void __iomem *)phys_addr;
-#if !defined(CONFIG_PMB_FIXED)
- /*
- * Don't allow anybody to remap normal RAM that we're using..
- */
- if (phys_addr < virt_to_phys(high_memory))
- return NULL;
-#endif
-
/*
* Mappings have to be page-aligned
*/