projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ar71xx] add MyLoader support
[openwrt-10.03/.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
ar71xx
/
platform.c
diff --git
a/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
b/target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
index db804fbb9121ccea60ae585f154ca6da6e07b0de..9e62114b1a0f496972a4e98080ecad1141646eba 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
+++ b/
target/linux/ar71xx/files/arch/mips/ar71xx/platform.c
@@
-414,7
+414,12
@@
err_free_buttons:
kfree(p);
}
kfree(p);
}
-void __init ar71xx_set_mac_base(char *mac_str)
+void __init ar71xx_set_mac_base(unsigned char *mac)
+{
+ memcpy(ar71xx_mac_base, mac, ETH_ALEN);
+}
+
+void __init ar71xx_parse_mac_addr(char *mac_str)
{
u8 tmp[ETH_ALEN];
int t;
{
u8 tmp[ETH_ALEN];
int t;
@@
-423,7
+428,7
@@
void __init ar71xx_set_mac_base(char *mac_str)
&tmp[0], &tmp[1], &tmp[2], &tmp[3], &tmp[4], &tmp[5]);
if (t == ETH_ALEN)
&tmp[0], &tmp[1], &tmp[2], &tmp[3], &tmp[4], &tmp[5]);
if (t == ETH_ALEN)
-
memcpy(ar71xx_mac_base, tmp, ETH_ALEN
);
+
ar71xx_set_mac_base(tmp
);
else
printk(KERN_DEBUG "AR71XX: failed to parse mac address "
"\"%s\"\n", mac_str);
else
printk(KERN_DEBUG "AR71XX: failed to parse mac address "
"\"%s\"\n", mac_str);