projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7e8c66
)
MIPS: Loongson: Move prom_argc and prom_argv into prom_init_cmdline()
author
Wu Zhangjin
<
[email protected]
>
Mon, 4 Jan 2010 09:16:47 +0000
(17:16 +0800)
committer
Ralf Baechle
<
[email protected]
>
Sat, 27 Feb 2010 11:53:10 +0000
(12:53 +0100)
prom_argc and prom_argv are only used by prom_init_cmdline(), move them
into the function.
Signed-off-by: Wu Zhangjin <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Patchwork: http://patchwork.linux-mips.org/patch/825/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/loongson/common/cmdline.c
patch
|
blob
|
history
diff --git
a/arch/mips/loongson/common/cmdline.c
b/arch/mips/loongson/common/cmdline.c
index 7ad47f227477d6d10fdabde77b5f28d986b55784..9e3283711d61e19a6fc7e2fd0dc87192917c70c1 100644
(file)
--- a/
arch/mips/loongson/common/cmdline.c
+++ b/
arch/mips/loongson/common/cmdline.c
@@
-21,12
+21,11
@@
#include <loongson.h>
-int prom_argc;
-/* pmon passes arguments in 32bit pointers */
-int *_prom_argv;
-
void __init prom_init_cmdline(void)
{
+ int prom_argc;
+ /* pmon passes arguments in 32bit pointers */
+ int *_prom_argv;
int i;
long l;