Skip to content

Commit

Permalink
sh: fix P4 iounmap() pass-through
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Feb 27, 2009
1 parent 5e084a1 commit 3e91fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/mm/ioremap_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e91fae

Please sign in to comment.