diff options
Diffstat (limited to 'arch/arm/mach-mxs')
-rw-r--r-- | arch/arm/mach-mxs/mach-mxs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c index 9cfb25cb0e90..48c2eba37b8b 100644 --- a/arch/arm/mach-mxs/mach-mxs.c +++ b/arch/arm/mach-mxs/mach-mxs.c | |||
@@ -176,8 +176,12 @@ static void __init update_fec_mac_prop(enum mac_oui oui) | |||
176 | np = of_find_compatible_node(from, NULL, "fsl,imx28-fec"); | 176 | np = of_find_compatible_node(from, NULL, "fsl,imx28-fec"); |
177 | if (!np) | 177 | if (!np) |
178 | return; | 178 | return; |
179 | |||
179 | from = np; | 180 | from = np; |
180 | 181 | ||
182 | if (of_get_property(np, "local-mac-address", NULL)) | ||
183 | continue; | ||
184 | |||
181 | newmac = kzalloc(sizeof(*newmac) + 6, GFP_KERNEL); | 185 | newmac = kzalloc(sizeof(*newmac) + 6, GFP_KERNEL); |
182 | if (!newmac) | 186 | if (!newmac) |
183 | return; | 187 | return; |