Skip to content

Commit

Permalink
sh: Fix overzealous checking in __ioremap()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stuart Menefy authored and Paul Mundt committed Aug 24, 2009
1 parent 6000fc4 commit a1fce73
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions arch/sh/mm/ioremap_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit a1fce73

Please sign in to comment.