diff options
| author | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-22 15:08:40 +0200 |
|---|---|---|
| committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-22 22:28:18 +0200 |
| commit | 9273487930b8bb267b63113dbc0d12eb27328f02 (patch) | |
| tree | a5fd9802efffce0c6fc323507958a61cf7ca405e /target/linux | |
| parent | 0605fa693e3ae5266c6d9b0a291ee12a3adac09b (diff) | |
| download | upstream-9273487930b8bb267b63113dbc0d12eb27328f02.tar.gz upstream-9273487930b8bb267b63113dbc0d12eb27328f02.tar.bz2 upstream-9273487930b8bb267b63113dbc0d12eb27328f02.zip | |
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>
Diffstat (limited to 'target/linux')
| -rw-r--r-- | target/linux/generic/files/drivers/bcma/fallback-sprom.c | 2 | ||||
| -rw-r--r-- | 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 ce93560a482..db583fca9cc 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 26f0fd2f036..b8a4dcedcf4 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); } |
