lede/package/kernel/mac80211/patches/ath11k/920-ath11k-kernel_6.12-support.patch

25 lines
574 B
Diff

--- a/drivers/net/wireless/ath/ath11k/ahb.c
+++ b/drivers/net/wireless/ath/ath11k/ahb.c
@@ -1269,7 +1269,11 @@
platform_set_drvdata(pdev, NULL);
}
+#if LINUX_VERSION_IS_LESS(6,11,0)
static int ath11k_ahb_remove(struct platform_device *pdev)
+#else
+static void ath11k_ahb_remove(struct platform_device *pdev)
+#endif
{
struct ath11k_base *ab = platform_get_drvdata(pdev);
@@ -1286,7 +1290,9 @@
qmi_fail:
ath11k_ahb_free_resources(ab);
+#if LINUX_VERSION_IS_LESS(6,11,0)
return 0;
+#endif
}
static void ath11k_ahb_shutdown(struct platform_device *pdev)