@@ -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;
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(-)