aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/mach-tx49xx
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2007-07-13 11:06:44 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-07-13 12:40:01 -0400
commitf24ae12b3eeb1b956b752d4d5907e311cfa95a1a (patch)
tree863e5b10054b4f4fb163229ccdbde208fec246ba /include/asm-mips/mach-tx49xx
parente1bb828906e54ffb7e8b358516158ffdcf9581b8 (diff)
[MIPS] Workaround for a sparse warning in include/asm-mips/mach-tx4927/ioremap.h
include2/asm/mach-tx49xx/ioremap.h:39:52: warning: cast truncates bits from constant value (fff000000 becomes ff000000) Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/mach-tx49xx')
-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,
36 36
37static inline int plat_iounmap(const volatile void __iomem *addr) 37static inline int plat_iounmap(const volatile void __iomem *addr)
38{ 38{
39 return (unsigned long)addr >= (unsigned long)(int)TXX9_DIRECTMAP_BASE; 39 return (unsigned long)addr >=
40 (unsigned long)(int)(TXX9_DIRECTMAP_BASE & 0xffffffff);
40} 41}
41 42
42#endif /* __ASM_MACH_TX49XX_IOREMAP_H */ 43#endif /* __ASM_MACH_TX49XX_IOREMAP_H */