Thread (30 messages) 30 messages, 7 authors, 2012-10-20

[PATCH net-next 09/21] of: Convert is_<foo>_ether_addr uses to eth_addr_<foo>

From: Joe Perches <joe@perches.com>
Date: 2012-10-19 04:14:51
Also in: lkml
Subsystem: open firmware and flattened device tree, the rest · Maintainers: Rob Herring, Saravana Kannan, Linus Torvalds

Convert the old ether_addr tests to eth_addr_<foo>.
Adds api consistency.

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/of/of_net.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/of/of_net.c b/drivers/of/of_net.c
index ffab033..452dcf6 100644
--- a/drivers/of/of_net.c
+++ b/drivers/of/of_net.c
@@ -78,15 +78,15 @@ const void *of_get_mac_address(struct device_node *np)
 	struct property *pp;
 
 	pp = of_find_property(np, "mac-address", NULL);
-	if (pp && (pp->length == 6) && is_valid_ether_addr(pp->value))
+	if (pp && (pp->length == 6) && eth_addr_valid(pp->value))
 		return pp->value;
 
 	pp = of_find_property(np, "local-mac-address", NULL);
-	if (pp && (pp->length == 6) && is_valid_ether_addr(pp->value))
+	if (pp && (pp->length == 6) && eth_addr_valid(pp->value))
 		return pp->value;
 
 	pp = of_find_property(np, "address", NULL);
-	if (pp && (pp->length == 6) && is_valid_ether_addr(pp->value))
+	if (pp && (pp->length == 6) && eth_addr_valid(pp->value))
 		return pp->value;
 
 	return NULL;
-- 
1.7.8.111.gad25c.dirty
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help