aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2022-03-21 20:14:08 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2022-10-22 19:44:45 +0200
commit22fbc2d896a22701c907419f9df767e51d75693d (patch)
tree63d11d8b3893fc9c902a6f499a52902ba6299758
parentd6e506eaaaef857c440e120bb6bea97773ce48c2 (diff)
downloadupstream-22fbc2d896a22701c907419f9df767e51d75693d.tar.gz
upstream-22fbc2d896a22701c907419f9df767e51d75693d.tar.bz2
upstream-22fbc2d896a22701c907419f9df767e51d75693d.zip
kernel: ltq-tapi: Fix compilation with Linux 5.15
MODULE_SUPPORTED_DEVICE was removed after Linux 5.10. Drop it from the driver as well. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
-rw-r--r--package/kernel/lantiq/ltq-tapi/patches/500-linux-509.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-tapi/patches/500-linux-509.patch b/package/kernel/lantiq/ltq-tapi/patches/500-linux-509.patch
index 586af59d85..07f61aa632 100644
--- a/package/kernel/lantiq/ltq-tapi/patches/500-linux-509.patch
+++ b/package/kernel/lantiq/ltq-tapi/patches/500-linux-509.patch
@@ -34,6 +34,16 @@
}
+@@ -3800,7 +3808,9 @@ module_exit (ifx_tapi_module_exit);
+
+ MODULE_AUTHOR ("Lantiq Deutschland GmbH");
+ MODULE_DESCRIPTION ("TAPI Driver - www.lantiq.com");
++#if LINUX_VERSION_CODE <= KERNEL_VERSION(5,10,0)
+ MODULE_SUPPORTED_DEVICE ("TAPI DEVICE");
++#endif
+ MODULE_LICENSE ("Dual BSD/GPL");
+
+ EXPORT_SYMBOL (IFX_TAPI_Register_LL_Drv);
--- a/src/drv_tapi_kpi.c
+++ b/src/drv_tapi_kpi.c
@@ -134,7 +134,11 @@ extern IFX_int32_t block_ingre