mirror of
https://github.com/armbian/build.git
synced 2025-08-10 13:16:58 +02:00
* Upgrading sunxi and sunxi64 EDGE to 5.13 Both variants tested for building * Bump imx6 to 5.13.y Tested * Bump Jetson nano kernel to 5.13.y * Move mvebu and mvebu64 edge to 5.13.y
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From 3538d9844d5d122ab9294f36523a718a049d4d4e Mon Sep 17 00:00:00 2001
|
|
From: Igor Pecovnik <igor.pecovnik@gmail.com>
|
|
Date: Tue, 20 Jul 2021 19:32:35 +0000
|
|
Subject: [PATCH] Adjusting xradio for 5.13.y
|
|
|
|
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
|
|
---
|
|
drivers/net/wireless/xradio/main.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/drivers/net/wireless/xradio/main.c b/drivers/net/wireless/xradio/main.c
|
|
index 55377f633..a4f8c399b 100644
|
|
--- a/drivers/net/wireless/xradio/main.c
|
|
+++ b/drivers/net/wireless/xradio/main.c
|
|
@@ -515,10 +515,12 @@ int xradio_core_init(struct sdio_func* func)
|
|
hw_priv->sdio_func = func;
|
|
sdio_set_drvdata(func, hw_priv);
|
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0)
|
|
// fill in mac addresses
|
|
if (hw_priv->pdev->of_node) {
|
|
addr = of_get_mac_address(hw_priv->pdev->of_node);
|
|
}
|
|
+#endif
|
|
if (!addr) {
|
|
dev_warn(hw_priv->pdev, "no mac address provided, using random\n");
|
|
eth_random_addr(randomaddr);
|
|
--
|
|
Created with Armbian build tools https://github.com/armbian/build
|
|
|