kernel: ltq-vmmc: Fix compilation with Linux 5.15
MODULE_SUPPORTED_DEVICE is gone after Linux 5.15. Drop it's usage on newer kernels to fix compilation with Linux 5.15. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
This commit is contained in:
parent
f4ce7df4fc
commit
2964353927
1 changed files with 10 additions and 0 deletions
|
@ -9,6 +9,16 @@
|
||||||
/* ============================= */
|
/* ============================= */
|
||||||
/* Local Macros & Definitions */
|
/* Local Macros & Definitions */
|
||||||
/* ============================= */
|
/* ============================= */
|
||||||
|
@@ -862,7 +864,9 @@ void vmmc_module_exit(void)
|
||||||
|
#ifdef MODULE
|
||||||
|
MODULE_DESCRIPTION("VMMC(VoiceMacroMipsCore) device driver - www.lantiq.com");
|
||||||
|
MODULE_AUTHOR("Lantiq Deutschland GmbH");
|
||||||
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5,11,0))
|
||||||
|
MODULE_SUPPORTED_DEVICE("DANUBE, TWINPASS, INCA-IP2, AR9, VR9");
|
||||||
|
+#endif
|
||||||
|
MODULE_LICENSE("Dual BSD/GPL");
|
||||||
|
|
||||||
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17))
|
||||||
--- a/src/mps/drv_mps_vmmc_linux.c
|
--- a/src/mps/drv_mps_vmmc_linux.c
|
||||||
+++ b/src/mps/drv_mps_vmmc_linux.c
|
+++ b/src/mps/drv_mps_vmmc_linux.c
|
||||||
@@ -80,11 +80,15 @@
|
@@ -80,11 +80,15 @@
|
||||||
|
|
Loading…
Reference in a new issue