|
@@ -1432,13 +1432,11 @@ static int lpc_eth_drv_probe(struct platform_device *pdev)
|
|
|
/* Get MAC address from current HW setting (POR state is all zeros) */
|
|
|
__lpc_get_mac(pldat, ndev->dev_addr);
|
|
|
|
|
|
-#ifdef CONFIG_OF_NET
|
|
|
if (!is_valid_ether_addr(ndev->dev_addr)) {
|
|
|
const char *macaddr = of_get_mac_address(pdev->dev.of_node);
|
|
|
if (macaddr)
|
|
|
memcpy(ndev->dev_addr, macaddr, ETH_ALEN);
|
|
|
}
|
|
|
-#endif
|
|
|
if (!is_valid_ether_addr(ndev->dev_addr))
|
|
|
eth_hw_addr_random(ndev);
|
|
|
|