diff options
author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-02-15 06:45:39 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-15 15:34:16 -0500 |
commit | f2cedb63df14342ad40a8b5b324fc5d94a60b665 (patch) | |
tree | bebdbe0f98c216e59849bc3adb85f8abf5aadc2b /drivers/net/ethernet/stmicro | |
parent | a1e785e02bb53573443c7e58a444cef1a049f6ce (diff) | |
download | linux-3.10-f2cedb63df14342ad40a8b5b324fc5d94a60b665.tar.gz linux-3.10-f2cedb63df14342ad40a8b5b324fc5d94a60b665.tar.bz2 linux-3.10-f2cedb63df14342ad40a8b5b324fc5d94a60b665.zip |
net: replace random_ether_addr() with eth_hw_addr_random()
Replace usage of random_ether_addr() with eth_hw_addr_random()
to set addr_assign_type correctly to NET_ADDR_RANDOM.
Change the trivial cases.
v2: adapt to renamed eth_hw_addr_random()
Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 166fc95e5ba..ab36dfcbd81 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -910,7 +910,7 @@ static void stmmac_check_ether_addr(struct stmmac_priv *priv) priv->dev->base_addr, priv->dev->dev_addr, 0); if (!is_valid_ether_addr(priv->dev->dev_addr)) - random_ether_addr(priv->dev->dev_addr); + eth_hw_addr_random(priv->dev); } pr_warning("%s: device MAC address %pM\n", priv->dev->name, priv->dev->dev_addr); |