[PATCH 4/6] kernel: fallback-sprom: rename random_ether_addr
Tomasz Maciej Nowak
tmn505 at terefe.re
Thu Apr 27 07:34:47 PDT 2023
From: Tomasz Maciej Nowak <tmn505 at gmail.com>
This helper has been renamed looong time ago, and with
ba530fea8ca1 ("ethernet: remove random_ether_addr()") the old name is no
longer available, so rename accordingly.
Signed-off-by: Tomasz Maciej Nowak <tmn505 at gmail.com>
---
target/linux/generic/files/drivers/bcma/fallback-sprom.c | 2 +-
target/linux/generic/files/drivers/ssb/fallback-sprom.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/generic/files/drivers/bcma/fallback-sprom.c b/target/linux/generic/files/drivers/bcma/fallback-sprom.c
index ce93560a4829..db583fca9cc2 100644
--- a/target/linux/generic/files/drivers/bcma/fallback-sprom.c
+++ b/target/linux/generic/files/drivers/bcma/fallback-sprom.c
@@ -494,7 +494,7 @@ static int bcma_fbs_probe(struct platform_device *pdev)
if (is_valid_ether_addr(mac)) {
dev_info(dev, "mtd mac %pM\n", mac);
} else {
- random_ether_addr(mac);
+ eth_random_addr(mac);
dev_info(dev, "random mac %pM\n", mac);
}
diff --git a/target/linux/generic/files/drivers/ssb/fallback-sprom.c b/target/linux/generic/files/drivers/ssb/fallback-sprom.c
index 26f0fd2f0366..b8a4dcedcf4f 100644
--- a/target/linux/generic/files/drivers/ssb/fallback-sprom.c
+++ b/target/linux/generic/files/drivers/ssb/fallback-sprom.c
@@ -705,7 +705,7 @@ static int ssb_fbs_probe(struct platform_device *pdev)
if (is_valid_ether_addr(mac)) {
dev_info(dev, "mtd mac %pM\n", mac);
} else {
- random_ether_addr(mac);
+ eth_random_addr(mac);
dev_info(dev, "random mac %pM\n", mac);
}
--
2.40.1
More information about the openwrt-devel
mailing list