aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-07-13 01:33:10 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-17 01:38:41 -0400
commit1833611d4efe4b99bb346aec40b827410a4de2e5 (patch)
tree671b91a5ee57756bde2a515cec2efd52b4a9a723 /drivers/s390/net
parent344dc8ede105d4f6c3e410dd36ee5349a04e3929 (diff)
s390: 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/s390/net')
-rw-r--r--drivers/s390/net/qeth_l2_main.c2
-rw-r--r--drivers/s390/net/qeth_l3_main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c
index 426986518e96..b09355c14ee1 100644
--- a/drivers/s390/net/qeth_l2_main.c
+++ b/drivers/s390/net/qeth_l2_main.c
@@ -647,7 +647,7 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card)
647 } 647 }
648 QETH_DBF_HEX(SETUP, 2, card->dev->dev_addr, OSA_ADDR_LEN); 648 QETH_DBF_HEX(SETUP, 2, card->dev->dev_addr, OSA_ADDR_LEN);
649 } else { 649 } else {
650 random_ether_addr(card->dev->dev_addr); 650 eth_random_addr(card->dev->dev_addr);
651 memcpy(card->dev->dev_addr, vendor_pre, 3); 651 memcpy(card->dev->dev_addr, vendor_pre, 3);
652 } 652 }
653 return 0; 653 return 0;
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c
index 73ac63d901c9..bada7f66c146 100644
--- a/drivers/s390/net/qeth_l3_main.c
+++ b/drivers/s390/net/qeth_l3_main.c
@@ -1473,7 +1473,7 @@ static int qeth_l3_iqd_read_initial_mac_cb(struct qeth_card *card,
1473 memcpy(card->dev->dev_addr, 1473 memcpy(card->dev->dev_addr,
1474 cmd->data.create_destroy_addr.unique_id, ETH_ALEN); 1474 cmd->data.create_destroy_addr.unique_id, ETH_ALEN);
1475 else 1475 else
1476 random_ether_addr(card->dev->dev_addr); 1476 eth_random_addr(card->dev->dev_addr);
1477 1477
1478 return 0; 1478 return 0;
1479} 1479}