projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6000fc4
)
sh: Fix overzealous checking in __ioremap()
author
Stuart Menefy
<stuart.menefy@st.com>
Mon, 24 Aug 2009 09:29:25 +0000
(18:29 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Mon, 24 Aug 2009 09:29:25 +0000
(18:29 +0900)
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>
arch/sh/mm/ioremap_32.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/mm/ioremap_32.c
b/arch/sh/mm/ioremap_32.c
index da2f4186f2cd32017418ede1205185cdd38d8897..c3250614e3ae291ce2d97208b87fc822377e911e 100644
(file)
--- 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
*/