From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757621Ab2JSEOv (ORCPT ); Fri, 19 Oct 2012 00:14:51 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:55535 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754477Ab2JSEOs (ORCPT ); Fri, 19 Oct 2012 00:14:48 -0400 From: Joe Perches To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH net-next 09/21] of: Convert is__ether_addr uses to eth_addr_ Date: Thu, 18 Oct 2012 21:14:13 -0700 Message-Id: <898fbb8148dc43347373e827fbb7a78279e8a2c0.1350618011.git.joe@perches.com> X-Mailer: git-send-email 1.7.8.111.gad25c.dirty In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the old ether_addr tests to eth_addr_. Adds api consistency. Signed-off-by: Joe Perches --- 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