ll_temac: Fix build.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -329,7 +329,7 @@ static int temac_set_mac_address(struct net_device *ndev, void *address)
|
|||||||
if (!is_valid_ether_addr(ndev->dev_addr))
|
if (!is_valid_ether_addr(ndev->dev_addr))
|
||||||
eth_hw_addr_random(ndev);
|
eth_hw_addr_random(ndev);
|
||||||
else
|
else
|
||||||
dev->addr_assign_type &= ~NET_ADDR_RANDOM;
|
ndev->addr_assign_type &= ~NET_ADDR_RANDOM;
|
||||||
|
|
||||||
/* set up unicast MAC address filter set its mac address */
|
/* set up unicast MAC address filter set its mac address */
|
||||||
mutex_lock(&lp->indirect_mutex);
|
mutex_lock(&lp->indirect_mutex);
|
||||||
|
Reference in New Issue
Block a user