Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182094
b: refs/heads/master
c: ae7cbef
h: refs/heads/master
v: v3
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Feb 27, 2010
1 parent 06ec311 commit 0adfa86
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c63d0cb5feedbc2cc456b6ea2105c15b563217cf
refs/heads/master: ae7cbef5e5789e2ee6855222a3b83eb94591ef0b
9 changes: 1 addition & 8 deletions trunk/arch/mips/alchemy/common/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/mips/include/asm/mach-au1x00/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0adfa86

Please sign in to comment.