[U-Boot-Users] [PATCH] mpc8544ds.c: Fix warning in MPC8544DS build

Kumar Gala galak at kernel.crashing.org
Sun Nov 18 17:40:25 CET 2007


mpc8544ds.c: In function 'pci_init_board':
mpc8544ds.c:230: warning: passing argument 1 of 'in_be32' makes pointer from integer without a cast

Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
---

This fixes the only warning on 85xx in -rc4 when testing with ./MAKEALL
85xx

 board/freescale/mpc8544ds/mpc8544ds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/freescale/mpc8544ds/mpc8544ds.c b/board/freescale/mpc8544ds/mpc8544ds.c
index 76d9091..23e2466 100644
--- a/board/freescale/mpc8544ds/mpc8544ds.c
+++ b/board/freescale/mpc8544ds/mpc8544ds.c
@@ -227,7 +227,7 @@ pci_init_board(void)
 		 * Activate ULI1575 legacy chip by performing a fake
 		 * memory access.  Needed to make ULI RTC work.
 		 */
-		in_be32(CFG_PCIE3_MEM_BASE);
+		in_be32((volatile unsigned *)CFG_PCIE3_MEM_BASE);
 	} else {
 		printf ("    PCIE3: disabled\n");
 	}
-- 
1.5.3.4





More information about the U-Boot mailing list