kernel: use eth_random_addr instead of random_ether_addr
random_ether_addr is just a reference to eth_random_addr, that was later dropped in more recent kernel version. Drop random_ether_addr and use eth_random_addr directly to fix compilation error in 6.1 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
0605fa693e
commit
9273487930
2 changed files with 2 additions and 2 deletions
|
@ -494,7 +494,7 @@ static int bcma_fbs_probe(struct platform_device *pdev)
|
||||||
if (is_valid_ether_addr(mac)) {
|
if (is_valid_ether_addr(mac)) {
|
||||||
dev_info(dev, "mtd mac %pM\n", mac);
|
dev_info(dev, "mtd mac %pM\n", mac);
|
||||||
} else {
|
} else {
|
||||||
random_ether_addr(mac);
|
eth_random_addr(mac);
|
||||||
dev_info(dev, "random mac %pM\n", mac);
|
dev_info(dev, "random mac %pM\n", mac);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -705,7 +705,7 @@ static int ssb_fbs_probe(struct platform_device *pdev)
|
||||||
if (is_valid_ether_addr(mac)) {
|
if (is_valid_ether_addr(mac)) {
|
||||||
dev_info(dev, "mtd mac %pM\n", mac);
|
dev_info(dev, "mtd mac %pM\n", mac);
|
||||||
} else {
|
} else {
|
||||||
random_ether_addr(mac);
|
eth_random_addr(mac);
|
||||||
dev_info(dev, "random mac %pM\n", mac);
|
dev_info(dev, "random mac %pM\n", mac);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue