/* This call assumes that the chip is not running, so there is no need to shutdown the RXQ process whilst setting this.  */
static int ks8851_write_mac_addr(struct net_device *dev)
/* This call assumes that the chip is not running, so there is no need to shutdown the RXQ process whilst setting this.  */
static int ks8851_write_mac_addr(struct net_device *dev)
{
	struct ks8851_net *ks = netdev_priv(dev);
	int i;
	mutex_lock(&ks->lock);
	for (i = 0; i < ETH_ALEN; i++)
		ks8851_wrreg8(ks, KS_MAR(i), dev->dev_addr[i]);
	mutex_unlock(&ks->lock);
	return 0;
}