diff mbox

[net-next,07/21] infiniband: Convert is_<foo>_ether_addr uses to eth_addr_<foo>

Message ID edc1c1b7e0ed06854627d4f3f5bf39d8236ec296.1350618011.git.joe@perches.com
State Rejected, archived
Delegated to: David Miller
Headers show

Commit Message

Joe Perches Oct. 19, 2012, 4:14 a.m. UTC
Convert the old ether_addr tests to eth_addr_<foo>.
Adds api consistency.

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/infiniband/hw/amso1100/c2.c |    2 +-
 drivers/infiniband/hw/nes/nes_nic.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/infiniband/hw/amso1100/c2.c b/drivers/infiniband/hw/amso1100/c2.c
index 5ce7b9e..3bb307c 100644
--- a/drivers/infiniband/hw/amso1100/c2.c
+++ b/drivers/infiniband/hw/amso1100/c2.c
@@ -908,7 +908,7 @@  static struct net_device *c2_devinit(struct c2_dev *c2dev,
 	memcpy_fromio(netdev->dev_addr, mmio_addr + C2_REGS_ENADDR, 6);
 
 	/* Validate the MAC address */
-	if (!is_valid_ether_addr(netdev->dev_addr)) {
+	if (!eth_addr_valid(netdev->dev_addr)) {
 		pr_debug("Invalid MAC Address\n");
 		c2_print_macaddr(netdev);
 		free_netdev(netdev);
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index 0564be7..3cd7d38 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -809,7 +809,7 @@  static int nes_netdev_set_mac_address(struct net_device *netdev, void *p)
 	u32 macaddr_low;
 	u16 macaddr_high;
 
-	if (!is_valid_ether_addr(mac_addr->sa_data))
+	if (!eth_addr_valid(mac_addr->sa_data))
 		return -EADDRNOTAVAIL;
 
 	memcpy(netdev->dev_addr, mac_addr->sa_data, netdev->addr_len);