aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch')
-rw-r--r--target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch b/target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch
index 706a864070..151fd2b0a9 100644
--- a/target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch
+++ b/target/linux/generic/pending-5.4/683-of_net-add-mac-address-to-of-tree.patch
@@ -1,7 +1,7 @@
--- a/drivers/of/of_net.c
+++ b/drivers/of/of_net.c
-@@ -125,6 +125,33 @@ static void *of_get_mac_address_mtd(stru
- #endif
+@@ -127,6 +127,33 @@ static void *of_get_mac_address_mtd(stru
+ return NULL;
}
+static int of_add_mac_address(struct device_node *np, u8* addr)
@@ -34,7 +34,7 @@
/**
* Search the device tree for the best MAC address to use. 'mac-address' is
-@@ -198,6 +225,7 @@ found:
+@@ -200,6 +227,7 @@ found:
if (!of_property_read_u32(np, "mac-address-increment", &mac_inc))
addr[inc_idx] += mac_inc;