[PATCH] ppc32: ppc_sys fixes for 8xx and 82xx (whitespaces fixed)

hs at denx.de hs at denx.de
Wed Oct 26 17:16:40 EST 2005


Hello,

i tried your Patch on a MPC8270 based Board, and got some
compilerwarnings, which the following Patch will fix.

Thanks
Heiko Schocher

---

 arch/ppc/syslib/m8260_setup.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/ppc/syslib/m8260_setup.c b/arch/ppc/syslib/m8260_setup.c
--- a/arch/ppc/syslib/m8260_setup.c
+++ b/arch/ppc/syslib/m8260_setup.c
@@ -28,6 +28,7 @@
 #include <asm/machdep.h>
 #include <asm/bootinfo.h>
 #include <asm/time.h>
+#include <asm/ppc_sys.h>

 #include "cpm2_pic.h"

@@ -74,7 +75,7 @@ m8260_setup_arch(void)
 #endif

        identify_ppc_sys_by_name_and_id(BOARD_CHIP_NAME,
-                               in_be32(CPM_MAP_ADDR + CPM_IMMR_OFFSET));
+                       in_be32((void *)(CPM_MAP_ADDR + CPM_IMMR_OFFSET)));

        m82xx_board_setup();
 }





More information about the Linuxppc-embedded mailing list