aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-03-13 14:05:44 -0700
committerJohn Crispin <john@phrozen.org>2019-10-27 14:13:47 +0100
commitc36ef5970b0342f01f1f3bfc7452b86992c7201b (patch)
tree6a336e8ad5dadab7f559de3a68ed890a3d11e38c /target
parent0b2a2f43807125bca726486d55af85e455d07958 (diff)
downloadupstream-c36ef5970b0342f01f1f3bfc7452b86992c7201b.tar.gz
upstream-c36ef5970b0342f01f1f3bfc7452b86992c7201b.tar.bz2
upstream-c36ef5970b0342f01f1f3bfc7452b86992c7201b.zip
ramips: ethernet: Replace random_ether_addr with eth_hw_addr_random
eth_hw_addr_random additionally sets addr_assign_type to NET_ADDR_RANDOM. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index 65aa7f3260..00e84bbcfb 100644
--- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -1388,7 +1388,7 @@ static int __init fe_init(struct net_device *dev)
/* If the mac address is invalid, use random mac address */
if (!is_valid_ether_addr(dev->dev_addr)) {
- random_ether_addr(dev->dev_addr);
+ eth_hw_addr_random(dev);
dev_err(priv->dev, "generated random MAC address %pM\n",
dev->dev_addr);
}