lede/package/qca/qca-nss-dp/patches/0014-nss_dp-fix-linux-6.6-support.patch

18 lines
353 B
Diff

--- a/hal/soc_ops/ipq50xx/nss_ipq50xx.c
+++ b/hal/soc_ops/ipq50xx/nss_ipq50xx.c
@@ -18,7 +18,14 @@
#include <linux/of.h>
#include <linux/ioport.h>
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(6, 2, 0))
#include <linux/firmware/qcom/qcom_scm.h>
+#else
+#include <linux/qcom_scm.h>
+#endif
+
#include "nss_dp_hal.h"
/*