|
@@ -458,7 +458,7 @@ void fdt_fixup_ethernet(void *fdt)
|
|
|
{
|
|
|
int node, i, j;
|
|
|
char enet[16], *tmp, *end;
|
|
|
- char mac[16] = "ethaddr";
|
|
|
+ char mac[16];
|
|
|
const char *path;
|
|
|
unsigned char mac_addr[6];
|
|
|
|
|
@@ -467,6 +467,7 @@ void fdt_fixup_ethernet(void *fdt)
|
|
|
return;
|
|
|
|
|
|
i = 0;
|
|
|
+ strcpy(mac, "ethaddr");
|
|
|
while ((tmp = getenv(mac)) != NULL) {
|
|
|
sprintf(enet, "ethernet%d", i);
|
|
|
path = fdt_getprop(fdt, node, enet, NULL);
|