diff options
author | Joe Perches <joe@perches.com> | 2012-07-12 15:33:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-17 01:38:27 -0400 |
commit | 7efd26d0db5917b9e53d72e76e52338b2600ae20 (patch) | |
tree | 3a9b9bec98380b2ef02f6441e7304b7255884a1c /drivers/net/ethernet/micrel | |
parent | 0a4dd594982a321699000218715e28664ec49169 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/micrel')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851_mll.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c index 5e313e9a252f..1540ebeb8669 100644 --- a/drivers/net/ethernet/micrel/ks8851.c +++ b/drivers/net/ethernet/micrel/ks8851.c | |||
@@ -422,7 +422,7 @@ static void ks8851_read_mac_addr(struct net_device *dev) | |||
422 | * | 422 | * |
423 | * Get or create the initial mac address for the device and then set that | 423 | * Get or create the initial mac address for the device and then set that |
424 | * into the station address register. If there is an EEPROM present, then | 424 | * into the station address register. If there is an EEPROM present, then |
425 | * we try that. If no valid mac address is found we use random_ether_addr() | 425 | * we try that. If no valid mac address is found we use eth_random_addr() |
426 | * to create a new one. | 426 | * to create a new one. |
427 | */ | 427 | */ |
428 | static void ks8851_init_mac(struct ks8851_net *ks) | 428 | static void ks8851_init_mac(struct ks8851_net *ks) |
diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c index 59ef568d5dd5..38529edfe350 100644 --- a/drivers/net/ethernet/micrel/ks8851_mll.c +++ b/drivers/net/ethernet/micrel/ks8851_mll.c | |||
@@ -1609,7 +1609,7 @@ static int __devinit ks8851_probe(struct platform_device *pdev) | |||
1609 | memcpy(ks->mac_addr, pdata->mac_addr, 6); | 1609 | memcpy(ks->mac_addr, pdata->mac_addr, 6); |
1610 | if (!is_valid_ether_addr(ks->mac_addr)) { | 1610 | if (!is_valid_ether_addr(ks->mac_addr)) { |
1611 | /* Use random MAC address if none passed */ | 1611 | /* Use random MAC address if none passed */ |
1612 | random_ether_addr(ks->mac_addr); | 1612 | eth_random_addr(ks->mac_addr); |
1613 | netdev_info(netdev, "Using random mac address\n"); | 1613 | netdev_info(netdev, "Using random mac address\n"); |
1614 | } | 1614 | } |
1615 | netdev_info(netdev, "Mac address is: %pM\n", ks->mac_addr); | 1615 | netdev_info(netdev, "Mac address is: %pM\n", ks->mac_addr); |