mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
14 lines
426 B
Diff
14 lines
426 B
Diff
--- a/ipq806x/nss_gmac_ctrl.c
|
|
+++ b/ipq806x/nss_gmac_ctrl.c
|
|
@@ -991,8 +991,8 @@
|
|
pr_err("%s: Can't map interrupt\n", np->name);
|
|
return -EFAULT;
|
|
}
|
|
- maddr = (uint8_t *)of_get_mac_address(np);
|
|
- if (!IS_ERR_OR_NULL(maddr))
|
|
+ of_get_mac_address(np, netdev->dev_addr);
|
|
+ if (!is_valid_ether_addr(netdev->dev_addr))
|
|
memcpy(gmaccfg->mac_addr, maddr, ETH_ALEN);
|
|
|
|
if (of_address_to_resource(np, 0, &memres_devtree) != 0)
|