diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-02-24 08:23:51 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-02-27 02:50:00 -0500 |
commit | 3e91faec47e9e12b965c952d698b0bb64847af06 (patch) | |
tree | 6e4d7b69e2e1dc914ee6dbde9f7b1d8cae6c72ea /arch/sh/mm | |
parent | 5e084a1586a864d4e9b3f2edbb1bd3429909d652 (diff) |
sh: fix P4 iounmap() pass-through
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>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r-- | arch/sh/mm/ioremap_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/ioremap_32.c b/arch/sh/mm/ioremap_32.c index 32946fba123e..8dc77026a0b5 100644 --- a/arch/sh/mm/ioremap_32.c +++ b/arch/sh/mm/ioremap_32.c | |||
@@ -119,7 +119,7 @@ void __iounmap(void __iomem *addr) | |||
119 | unsigned long seg = PXSEG(vaddr); | 119 | unsigned long seg = PXSEG(vaddr); |
120 | struct vm_struct *p; | 120 | struct vm_struct *p; |
121 | 121 | ||
122 | if (seg < P3SEG || seg >= P3_ADDR_MAX || is_pci_memaddr(vaddr)) | 122 | if (seg < P3SEG || vaddr >= P3_ADDR_MAX || is_pci_memaddr(vaddr)) |
123 | return; | 123 | return; |
124 | 124 | ||
125 | #ifdef CONFIG_32BIT | 125 | #ifdef CONFIG_32BIT |