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