]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sh: fix P4 iounmap() pass-through
authorMagnus Damm <damm@igel.co.jp>
Tue, 24 Feb 2009 13:23:51 +0000 (22:23 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 27 Feb 2009 07:50:00 +0000 (16:50 +0900)
Fix iounmap() of pass-through P4 addresses. Without this patch
iounmap() on the sh7780 rtc area results in a warning message.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/ioremap_32.c

index 32946fba123e597046a7316f49150a1b6d3be8ea..8dc77026a0b533ce52aee8959c807bbdbfc505b5 100644 (file)
@@ -119,7 +119,7 @@ void __iounmap(void __iomem *addr)
        unsigned long seg = PXSEG(vaddr);
        struct vm_struct *p;
 
-       if (seg < P3SEG || seg >= P3_ADDR_MAX || is_pci_memaddr(vaddr))
+       if (seg < P3SEG || vaddr >= P3_ADDR_MAX || is_pci_memaddr(vaddr))
                return;
 
 #ifdef CONFIG_32BIT