浏览代码

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>
Magnus Damm 16 年之前
父节点
当前提交
3e91faec47
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/sh/mm/ioremap_32.c

+ 1 - 1
arch/sh/mm/ioremap_32.c

@@ -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