MPC86xx: fix build warnings
authorWolfgang Denk <wd@denx.de>
Mon, 12 Jan 2009 13:50:35 +0000 (14:50 +0100)
committerWolfgang Denk <wd@denx.de>
Mon, 12 Jan 2009 13:50:35 +0000 (14:50 +0100)
Signed-off-by: Wolfgang Denk <wd@denx.de>
cpu/mpc86xx/cpu.c
cpu/mpc86xx/fdt.c

index 3568023..dc53bee 100644 (file)
@@ -101,7 +101,7 @@ checkcpu(void)
        if (sysinfo.freqLocalBus > LCRR_CLKDIV) {
                printf("LBC:%4lu MHz\n", sysinfo.freqLocalBus / 1000000);
        } else {
-               printf("LBC: unknown (LCRR[CLKDIV] = 0x%02x)\n",
+               printf("LBC: unknown (LCRR[CLKDIV] = 0x%02lx)\n",
                       sysinfo.freqLocalBus);
        }
 
index e277040..383b06b 100644 (file)
@@ -13,8 +13,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-DECLARE_GLOBAL_DATA_PTR;
-
 void ft_cpu_setup(void *blob, bd_t *bd)
 {
 #if (CONFIG_NUM_CPUS > 1)