public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: fix P4 iounmap() pass-through
@ 2009-02-24 13:23 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2009-02-24 13:23 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@igel.co.jp>

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

 arch/sh/mm/ioremap_32.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 0001/arch/sh/mm/ioremap_32.c
+++ work/arch/sh/mm/ioremap_32.c	2009-02-24 20:58:38.000000000 +0900
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-24 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-24 13:23 [PATCH] sh: fix P4 iounmap() pass-through Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox