diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-11-03 12:48:17 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-11-06 15:55:36 -0500 |
commit | 2002d2bde1a9ad10e2521b8b117c11abfbc2ee93 (patch) | |
tree | e46f90e9a17e2bce4d61fdf33f9d566c1d1d933d | |
parent | 9c422e2ad6a1d8bd03e2e9d49e5c63b82165d596 (diff) |
[MIPS] Ocelot C: Fix warning about missmatching format string.
CC arch/mips/momentum/ocelot_c/setup.o
arch/mips/momentum/ocelot_c/setup.c: In function 'momenco_time_init':
arch/mips/momentum/ocelot_c/setup.c:223: warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned int'
Change data type to match format string; a 32-bit type better suits our
needs.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/momentum/ocelot_c/prom.c | 2 | ||||
-rw-r--r-- | arch/mips/momentum/ocelot_c/setup.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/momentum/ocelot_c/prom.c b/arch/mips/momentum/ocelot_c/prom.c index 4c50a147f429..1f67728d6a49 100644 --- a/arch/mips/momentum/ocelot_c/prom.c +++ b/arch/mips/momentum/ocelot_c/prom.c | |||
@@ -29,7 +29,7 @@ | |||
29 | struct callvectors* debug_vectors; | 29 | struct callvectors* debug_vectors; |
30 | 30 | ||
31 | extern unsigned long marvell_base; | 31 | extern unsigned long marvell_base; |
32 | extern unsigned long cpu_clock; | 32 | extern unsigned int cpu_clock; |
33 | 33 | ||
34 | #ifdef CONFIG_MV643XX_ETH | 34 | #ifdef CONFIG_MV643XX_ETH |
35 | extern unsigned char prom_mac_addr_base[6]; | 35 | extern unsigned char prom_mac_addr_base[6]; |
diff --git a/arch/mips/momentum/ocelot_c/setup.c b/arch/mips/momentum/ocelot_c/setup.c index 0a3ffa33771d..7832d4e04c38 100644 --- a/arch/mips/momentum/ocelot_c/setup.c +++ b/arch/mips/momentum/ocelot_c/setup.c | |||
@@ -70,7 +70,7 @@ | |||
70 | #include "ocelot_c_fpga.h" | 70 | #include "ocelot_c_fpga.h" |
71 | 71 | ||
72 | unsigned long marvell_base; | 72 | unsigned long marvell_base; |
73 | unsigned long cpu_clock; | 73 | unsigned int cpu_clock; |
74 | 74 | ||
75 | /* These functions are used for rebooting or halting the machine*/ | 75 | /* These functions are used for rebooting or halting the machine*/ |
76 | extern void momenco_ocelot_restart(char *command); | 76 | extern void momenco_ocelot_restart(char *command); |