mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
parent
065be5b18a
commit
2297f089da
@ -1402,9 +1402,7 @@ static int __init fe_init(struct net_device *dev)
|
|||||||
|
|
||||||
fe_reset_phy(priv);
|
fe_reset_phy(priv);
|
||||||
|
|
||||||
mac_addr = of_get_mac_address(priv->dev->of_node);
|
of_get_mac_address(priv->dev->of_node, dev->dev_addr);
|
||||||
if (!IS_ERR_OR_NULL(mac_addr))
|
|
||||||
ether_addr_copy(dev->dev_addr, mac_addr);
|
|
||||||
|
|
||||||
/* If the mac address is invalid, use random mac address */
|
/* If the mac address is invalid, use random mac address */
|
||||||
if (!is_valid_ether_addr(dev->dev_addr)) {
|
if (!is_valid_ether_addr(dev->dev_addr)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user