[openwrt/openwrt] ltq-vdsl-vr11-mei: remove support for older kernel versions

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 23 15:26:53 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/d787839afaaa4f49feb657cd3f930d8e436e76fe

commit d787839afaaa4f49feb657cd3f930d8e436e76fe
Author: Andre Heider <a.heider at gmail.com>
AuthorDate: Sat May 25 08:13:21 2024 +0200

    ltq-vdsl-vr11-mei: remove support for older kernel versions
    
    There's only v6.6 in-tree, remove anything older.
    
    Signed-off-by: Andre Heider <a.heider at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/18056
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/100-compat.patch   | 4 +---
 .../lantiq/ltq-vdsl-vr11-mei/patches/130-support-kernel-6.6.patch  | 7 ++-----
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/100-compat.patch b/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/100-compat.patch
index 74e88894d8..58df61a0cb 100644
--- a/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/100-compat.patch
+++ b/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/100-compat.patch
@@ -10,13 +10,11 @@
  
 --- a/src/drv_mei_cpe_linux.h
 +++ b/src/drv_mei_cpe_linux.h
-@@ -110,6 +110,10 @@ typedef irqreturn_t (*usedIsrHandler_t)(
+@@ -110,6 +110,8 @@ typedef irqreturn_t (*usedIsrHandler_t)(
  #  endif
  #endif
  
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0))
 +#define PDE_DATA pde_data
-+#endif
 +
  /**
     Function typedef for the Linux request_threaded_irq()
diff --git a/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/130-support-kernel-6.6.patch b/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/130-support-kernel-6.6.patch
index 407afc9bf2..f09fbd4284 100644
--- a/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/130-support-kernel-6.6.patch
+++ b/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/130-support-kernel-6.6.patch
@@ -1,14 +1,11 @@
 --- a/src/drv_mei_cpe_linux.c
 +++ b/src/drv_mei_cpe_linux.c
-@@ -2779,7 +2779,11 @@ static int MEI_InitModuleRegCharDev(cons
+@@ -2779,7 +2779,7 @@ static int MEI_InitModuleRegCharDev(cons
              ("Using major number %d" MEI_DRV_CRLF, MAJOR(mei_devt)));
        }
  
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
-       mei_class = class_create(THIS_MODULE, devName);
-+#else
+-      mei_class = class_create(THIS_MODULE, devName);
 +      mei_class = class_create(devName);
-+#endif
        if (IS_ERR(mei_class))
        {
           PRN_DBG_USR_NL( MEI_DRV,MEI_DRV_PRN_LEVEL_HIGH,




More information about the lede-commits mailing list