Commit 32fc0ade authored by Florian Fainelli's avatar Florian Fainelli Committed by Ralf Baechle

MIPS: Alchemy: Fix warnings in DB1x00 / PB1000 / PB1550 board setup code

This patch fixes warnings due to potentially unused
variables in board setup code or mixed variables
declaration and code (forbidden by ISO C90).
Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 66a1d9ba
...@@ -85,12 +85,14 @@ void board_reset(void) ...@@ -85,12 +85,14 @@ void board_reset(void)
void __init board_setup(void) void __init board_setup(void)
{ {
unsigned long bcsr1, bcsr2; unsigned long bcsr1, bcsr2;
u32 pin_func = 0; u32 pin_func;
char *argptr; char *argptr;
bcsr1 = DB1000_BCSR_PHYS_ADDR; bcsr1 = DB1000_BCSR_PHYS_ADDR;
bcsr2 = DB1000_BCSR_PHYS_ADDR + DB1000_BCSR_HEXLED_OFS; bcsr2 = DB1000_BCSR_PHYS_ADDR + DB1000_BCSR_HEXLED_OFS;
pin_func = 0;
#ifdef CONFIG_MIPS_DB1000 #ifdef CONFIG_MIPS_DB1000
printk(KERN_INFO "AMD Alchemy Au1000/Db1000 Board\n"); printk(KERN_INFO "AMD Alchemy Au1000/Db1000 Board\n");
#endif #endif
......
...@@ -46,9 +46,13 @@ void __init board_setup(void) ...@@ -46,9 +46,13 @@ void __init board_setup(void)
u32 pin_func, static_cfg0; u32 pin_func, static_cfg0;
u32 sys_freqctrl, sys_clksrc; u32 sys_freqctrl, sys_clksrc;
u32 prid = read_c0_prid(); u32 prid = read_c0_prid();
char *argptr;
sys_freqctrl = 0;
sys_clksrc = 0;
argptr = prom_getcmdline();
#ifdef CONFIG_SERIAL_8250_CONSOLE #ifdef CONFIG_SERIAL_8250_CONSOLE
char *argptr = prom_getcmdline();
argptr = strstr(argptr, "console="); argptr = strstr(argptr, "console=");
if (argptr == NULL) { if (argptr == NULL) {
argptr = prom_getcmdline(); argptr = prom_getcmdline();
......
...@@ -56,14 +56,13 @@ void board_reset(void) ...@@ -56,14 +56,13 @@ void board_reset(void)
void __init board_setup(void) void __init board_setup(void)
{ {
u32 pin_func; u32 pin_func;
char *argptr;
bcsr_init(PB1550_BCSR_PHYS_ADDR, bcsr_init(PB1550_BCSR_PHYS_ADDR,
PB1550_BCSR_PHYS_ADDR + PB1550_BCSR_HEXLED_OFS); PB1550_BCSR_PHYS_ADDR + PB1550_BCSR_HEXLED_OFS);
#ifdef CONFIG_SERIAL_8250_CONSOLE
char *argptr;
argptr = prom_getcmdline(); argptr = prom_getcmdline();
#ifdef CONFIG_SERIAL_8250_CONSOLE
argptr = strstr(argptr, "console="); argptr = strstr(argptr, "console=");
if (argptr == NULL) { if (argptr == NULL) {
argptr = prom_getcmdline(); argptr = prom_getcmdline();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment