MIPS: Alchemy: Remove prom_getcmdline()
authorYoichi Yuasa <yuasa@linux-mips.org>
Mon, 1 Feb 2010 13:05:57 +0000 (22:05 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 27 Feb 2010 11:53:21 +0000 (12:53 +0100)
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
Cc: linux-mips <linux-mips@linux-mips.org>
Patchwork: http://patchwork.linux-mips.org/patch/927/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/common/prom.c
arch/mips/include/asm/mach-au1x00/prom.h

index 18b310b475ca28195904f653637aedbd9bb57d7c..79e099fbc0bf6de967d01a7732e14d3a8fadf650 100644 (file)
@@ -43,11 +43,6 @@ int prom_argc;
 char **prom_argv;
 char **prom_envp;
 
-char * __init_or_module prom_getcmdline(void)
-{
-       return &(arcs_cmdline[0]);
-}
-
 void prom_init_cmdline(void)
 {
        char *cp;
@@ -121,14 +116,12 @@ static inline void str2eaddr(unsigned char *ea, unsigned char *str)
 int prom_get_ethernet_addr(char *ethernet_addr)
 {
        char *ethaddr_str;
-       char *argptr;
 
        /* Check the environment variables first */
        ethaddr_str = prom_getenv("ethaddr");
        if (!ethaddr_str) {
                /* Check command line */
-               argptr = prom_getcmdline();
-               ethaddr_str = strstr(argptr, "ethaddr=");
+               ethaddr_str = strstr(arcs_cmdline, "ethaddr=");
                if (!ethaddr_str)
                        return -1;
 
index e38715577c51cd8486f7e8d328ceaeeb46b3bed4..4c0e09cf1735c58215e40b4a276687e35604c9d5 100644 (file)
@@ -6,7 +6,6 @@ extern char **prom_argv;
 extern char **prom_envp;
 
 extern void prom_init_cmdline(void);
-extern char *prom_getcmdline(void);
 extern char *prom_getenv(char *envname);
 extern int prom_get_ethernet_addr(char *ethernet_addr);