Commit e1d9f759 authored by John Crispin's avatar John Crispin Committed by Greg Kroah-Hartman

MIPS: ralink: Cosmetic change to prom_init().

commit 9c48568b upstream.

Over the years the code has been changed various times leading to
argc/argv being defined in a different function to where we actually
use the variables. Clean this up by moving them to prom_init_cmdline().
Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14902/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 02b210c1
...@@ -30,8 +30,10 @@ const char *get_system_type(void) ...@@ -30,8 +30,10 @@ const char *get_system_type(void)
return soc_info.sys_type; return soc_info.sys_type;
} }
static __init void prom_init_cmdline(int argc, char **argv) static __init void prom_init_cmdline(void)
{ {
int argc;
char **argv;
int i; int i;
pr_debug("prom: fw_arg0=%08x fw_arg1=%08x fw_arg2=%08x fw_arg3=%08x\n", pr_debug("prom: fw_arg0=%08x fw_arg1=%08x fw_arg2=%08x fw_arg3=%08x\n",
...@@ -60,14 +62,11 @@ static __init void prom_init_cmdline(int argc, char **argv) ...@@ -60,14 +62,11 @@ static __init void prom_init_cmdline(int argc, char **argv)
void __init prom_init(void) void __init prom_init(void)
{ {
int argc;
char **argv;
prom_soc_init(&soc_info); prom_soc_init(&soc_info);
pr_info("SoC Type: %s\n", get_system_type()); pr_info("SoC Type: %s\n", get_system_type());
prom_init_cmdline(argc, argv); prom_init_cmdline();
} }
void __init prom_free_prom_memory(void) void __init prom_free_prom_memory(void)
......
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