aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/boot/devtree.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/powerpc/boot/devtree.c b/arch/powerpc/boot/devtree.c
index e1b8122b4393..549463bf5eec 100644
--- a/arch/powerpc/boot/devtree.c
+++ b/arch/powerpc/boot/devtree.c
@@ -100,12 +100,14 @@ void __dt_fixup_mac_addresses(u32 startindex, ...)
100 devp = find_node_by_prop_value(NULL, "linux,network-index", 100 devp = find_node_by_prop_value(NULL, "linux,network-index",
101 (void*)&index, sizeof(index)); 101 (void*)&index, sizeof(index));
102 102
103 printf("ENET%d: local-mac-address <-" 103 if (devp) {
104 " %02x:%02x:%02x:%02x:%02x:%02x\n\r", index, 104 printf("ENET%d: local-mac-address <-"
105 addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]); 105 " %02x:%02x:%02x:%02x:%02x:%02x\n\r", index,
106 addr[0], addr[1], addr[2],
107 addr[3], addr[4], addr[5]);
106 108
107 if (devp)
108 setprop(devp, "local-mac-address", addr, 6); 109 setprop(devp, "local-mac-address", addr, 6);
110 }
109 111
110 index++; 112 index++;
111 } 113 }