/* Store the new hardware address in dev->dev_addr, and update the MAC.  */
static int enc28j60_set_mac_address(struct net_device *dev, void *addr)
/* Store the new hardware address in dev->dev_addr, and update the MAC.  */
static int enc28j60_set_mac_address(struct net_device *dev, void *addr)
{
	struct sockaddr *address = addr;
	if (netif_running(dev))
		return -EBUSY;
	if (!is_valid_ether_addr(address->sa_data))
		return -EADDRNOTAVAIL;
	memcpy(dev->dev_addr, address->sa_data, dev->addr_len);
	return enc28j60_set_hw_macaddr(dev);
}