ethernet: Use eth_random_addr
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0a4dd59498
commit
7efd26d0db
@@ -637,7 +637,7 @@ static int __devinit w5100_hw_probe(struct platform_device *pdev)
|
||||
if (data && is_valid_ether_addr(data->mac_addr)) {
|
||||
memcpy(ndev->dev_addr, data->mac_addr, ETH_ALEN);
|
||||
} else {
|
||||
random_ether_addr(ndev->dev_addr);
|
||||
eth_random_addr(ndev->dev_addr);
|
||||
ndev->addr_assign_type |= NET_ADDR_RANDOM;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user