aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/atheros
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-07-12 15:33:06 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-17 01:38:27 -0400
commit7efd26d0db5917b9e53d72e76e52338b2600ae20 (patch)
tree3a9b9bec98380b2ef02f6441e7304b7255884a1c /drivers/net/ethernet/atheros
parent0a4dd594982a321699000218715e28664ec49169 (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')
-rw-r--r--drivers/net/ethernet/atheros/atl1c/atl1c_hw.c2
-rw-r--r--drivers/net/ethernet/atheros/atlx/atl1.c2
-rw-r--r--drivers/net/ethernet/atheros/atlx/atl2.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_hw.c b/drivers/net/ethernet/atheros/atl1c/atl1c_hw.c
index 801f0126512d..21e261ffbe10 100644
--- a/drivers/net/ethernet/atheros/atl1c/atl1c_hw.c
+++ b/drivers/net/ethernet/atheros/atl1c/atl1c_hw.c
@@ -199,7 +199,7 @@ int atl1c_read_mac_addr(struct atl1c_hw *hw)
199 199
200 err = atl1c_get_permanent_address(hw); 200 err = atl1c_get_permanent_address(hw);
201 if (err) 201 if (err)
202 random_ether_addr(hw->perm_mac_addr); 202 eth_random_addr(hw->perm_mac_addr);
203 203
204 memcpy(hw->mac_addr, hw->perm_mac_addr, sizeof(hw->perm_mac_addr)); 204 memcpy(hw->mac_addr, hw->perm_mac_addr, sizeof(hw->perm_mac_addr));
205 return err; 205 return err;
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;