kernel: use eth_random_addr instead of random_ether_addr
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 22 May 2023 13:08:40 +0000 (15:08 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 22 May 2023 20:28:18 +0000 (22:28 +0200)
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>
target/linux/generic/files/drivers/bcma/fallback-sprom.c
target/linux/generic/files/drivers/ssb/fallback-sprom.c

index ce93560a4829b9ea26b9e21ab6d2eb57761ea853..db583fca9cc2a7cbfd77f2967d26eee5d17d33f9 100644 (file)
@@ -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);
        }
 
index 26f0fd2f0366385818a9e27a8a3d02922b53004c..b8a4dcedcf4f1c80dcc9a273a5827e9d7600894c 100644 (file)
@@ -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);
        }