s390: Use eth_random_addr
authorJoe Perches <joe@perches.com>
Fri, 13 Jul 2012 05:33:10 +0000 (22:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 05:38:41 +0000 (22:38 -0700)
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>
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c

index 426986518e96e039c14c503875747b36b436d239..b09355c14ee1c28f2f767f869312fafc2ec80cca 100644 (file)
@@ -647,7 +647,7 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card)
                }
                QETH_DBF_HEX(SETUP, 2, card->dev->dev_addr, OSA_ADDR_LEN);
        } else {
-               random_ether_addr(card->dev->dev_addr);
+               eth_random_addr(card->dev->dev_addr);
                memcpy(card->dev->dev_addr, vendor_pre, 3);
        }
        return 0;
index 73ac63d901c9e5731dc4a39d658fdb643431ef19..bada7f66c146f18d8c1d89c00b34af2c13989898 100644 (file)
@@ -1473,7 +1473,7 @@ static int qeth_l3_iqd_read_initial_mac_cb(struct qeth_card *card,
                memcpy(card->dev->dev_addr,
                        cmd->data.create_destroy_addr.unique_id, ETH_ALEN);
        else
-               random_ether_addr(card->dev->dev_addr);
+               eth_random_addr(card->dev->dev_addr);
 
        return 0;
 }