| .. | .. |
|---|
| 92 | 92 | continue; |
|---|
| 93 | 93 | |
|---|
| 94 | 94 | /* skip disabled nodes or nodes with valid MAC address*/ |
|---|
| 95 | | - if (!of_device_is_available(pnp) || of_get_mac_address(np)) |
|---|
| 95 | + if (!of_device_is_available(pnp) || |
|---|
| 96 | + !IS_ERR(of_get_mac_address(np))) |
|---|
| 96 | 97 | goto eth_fixup_skip; |
|---|
| 97 | 98 | |
|---|
| 98 | 99 | clk = of_clk_get(pnp, 0); |
|---|
| .. | .. |
|---|
| 107 | 108 | clk_prepare_enable(clk); |
|---|
| 108 | 109 | |
|---|
| 109 | 110 | /* store MAC address register contents in local-mac-address */ |
|---|
| 110 | | - pr_err(FW_INFO "%pOF: local-mac-address is not set\n", np); |
|---|
| 111 | | - |
|---|
| 112 | 111 | pmac = kzalloc(sizeof(*pmac) + 6, GFP_KERNEL); |
|---|
| 113 | 112 | if (!pmac) |
|---|
| 114 | 113 | goto eth_fixup_no_mem; |
|---|