From: Stuart Menefy Date: Mon, 24 Aug 2009 09:29:25 +0000 (+0900) Subject: sh: Fix overzealous checking in __ioremap() X-Git-Tag: v2.6.32-rc1~640^2~35^2~14^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a1fce732359b80ead84efba23059a5f1b572b85a;p=karo-tx-linux.git sh: Fix overzealous checking in __ioremap() Allow peripherals before the start of RAM to be remapped. Signed-off-by: Stuart Menefy Signed-off-by: Paul Mundt --- diff --git a/arch/sh/mm/ioremap_32.c b/arch/sh/mm/ioremap_32.c index da2f4186f2cd..c3250614e3ae 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 */