aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-5.15/683-of_net-add-mac-address-to-of-tree.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/pending-5.15/683-of_net-add-mac-address-to-of-tree.patch')
-rw-r--r--target/linux/generic/pending-5.15/683-of_net-add-mac-address-to-of-tree.patch8
1 files changed, 2 insertions, 6 deletions
diff --git a/target/linux/generic/pending-5.15/683-of_net-add-mac-address-to-of-tree.patch b/target/linux/generic/pending-5.15/683-of_net-add-mac-address-to-of-tree.patch
index 742d58b708..f7ef06a14a 100644
--- a/target/linux/generic/pending-5.15/683-of_net-add-mac-address-to-of-tree.patch
+++ b/target/linux/generic/pending-5.15/683-of_net-add-mac-address-to-of-tree.patch
@@ -15,11 +15,9 @@ property. This way, the MAC address can be accessed using procfs.
net/core/of_net.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
-diff --git a/net/core/of_net.c b/net/core/of_net.c
-index 71c38b532f72..43b28c8ddff9 100644
--- a/net/core/of_net.c
+++ b/net/core/of_net.c
-@@ -95,6 +95,27 @@ static int of_get_mac_addr_nvmem(struct device_node *np, u8 *addr)
+@@ -95,6 +95,27 @@ static int of_get_mac_addr_nvmem(struct
return 0;
}
@@ -47,7 +45,7 @@ index 71c38b532f72..43b28c8ddff9 100644
/**
* of_get_mac_address()
* @np: Caller's Device Node
-@@ -175,6 +196,7 @@ int of_get_mac_address(struct device_node *np, u8 *addr)
+@@ -175,6 +196,7 @@ found:
addr[5] = (mac_val >> 0) & 0xff;
}
@@ -55,5 +53,3 @@ index 71c38b532f72..43b28c8ddff9 100644
return ret;
}
EXPORT_SYMBOL(of_get_mac_address);
---
-