summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/mach-tx49xx/ioremap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips/mach-tx49xx/ioremap.h')
-rw-r--r--include/asm-mips/mach-tx49xx/ioremap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-mips/mach-tx49xx/ioremap.h b/include/asm-mips/mach-tx49xx/ioremap.h
index 88cf546719b8..1e7beae72229 100644
--- a/include/asm-mips/mach-tx49xx/ioremap.h
+++ b/include/asm-mips/mach-tx49xx/ioremap.h
@@ -36,7 +36,8 @@ static inline void __iomem *plat_ioremap(phys_t offset, unsigned long size,
static inline int plat_iounmap(const volatile void __iomem *addr)
{
- return (unsigned long)addr >= (unsigned long)(int)TXX9_DIRECTMAP_BASE;
+ return (unsigned long)addr >=
+ (unsigned long)(int)(TXX9_DIRECTMAP_BASE & 0xffffffff);
}
#endif /* __ASM_MACH_TX49XX_IOREMAP_H */
OpenPOWER on IntegriCloud