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/atheros/atlx | |
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/atheros/atlx')
-rw-r--r-- | drivers/net/ethernet/atheros/atlx/atl1.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/atheros/atlx/atl2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/atheros/atlx/atl1.c b/drivers/net/ethernet/atheros/atlx/atl1.c index f2402f355cec..7bae2ad7a7c0 100644 --- a/drivers/net/ethernet/atheros/atlx/atl1.c +++ b/drivers/net/ethernet/atheros/atlx/atl1.c | |||
@@ -538,7 +538,7 @@ static s32 atl1_read_mac_addr(struct atl1_hw *hw) | |||
538 | u16 i; | 538 | u16 i; |
539 | 539 | ||
540 | if (atl1_get_permanent_address(hw)) { | 540 | if (atl1_get_permanent_address(hw)) { |
541 | random_ether_addr(hw->perm_mac_addr); | 541 | eth_random_addr(hw->perm_mac_addr); |
542 | ret = 1; | 542 | ret = 1; |
543 | } | 543 | } |
544 | 544 | ||
diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c index 7c0b7e2bcb66..57d64b80fd72 100644 --- a/drivers/net/ethernet/atheros/atlx/atl2.c +++ b/drivers/net/ethernet/atheros/atlx/atl2.c | |||
@@ -2346,7 +2346,7 @@ static s32 atl2_read_mac_addr(struct atl2_hw *hw) | |||
2346 | { | 2346 | { |
2347 | if (get_permanent_address(hw)) { | 2347 | if (get_permanent_address(hw)) { |
2348 | /* for test */ | 2348 | /* for test */ |
2349 | /* FIXME: shouldn't we use random_ether_addr() here? */ | 2349 | /* FIXME: shouldn't we use eth_random_addr() here? */ |
2350 | hw->perm_mac_addr[0] = 0x00; | 2350 | hw->perm_mac_addr[0] = 0x00; |
2351 | hw->perm_mac_addr[1] = 0x13; | 2351 | hw->perm_mac_addr[1] = 0x13; |
2352 | hw->perm_mac_addr[2] = 0x74; | 2352 | hw->perm_mac_addr[2] = 0x74; |