]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
PPC: fix map_physmem build warning
authorBecky Bruce <bgill@freescale.com>
Wed, 7 May 2008 18:28:16 +0000 (13:28 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 9 May 2008 23:00:37 +0000 (01:00 +0200)
map_physmem currently generates a warning when CONFIG_PHYS_64BIT is
enabled.  This quiets the warning.

Signed-off-by: Becky Bruce <Becky.Bruce@freescale.com>
include/asm-ppc/io.h

index 00b7ec57e40968624b87287a8324cd619c8612c5..7cc28bfe3a25c3bc048e46b0aa933b257184de4b 100644 (file)
@@ -251,7 +251,7 @@ extern inline void out_be32(volatile unsigned __iomem *addr, int val)
 static inline void *
 map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
 {
-       return (void *)paddr;
+       return (void *)((unsigned long)paddr);
 }
 
 /*