[openwrt/openwrt] kernel: leds-ws2812b: remove sub 6.6 support

LEDE Commits lede-commits at lists.infradead.org
Sun Oct 6 03:21:57 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e15aab2a17bd7df5cec09da61d2b0d2f052c7232

commit e15aab2a17bd7df5cec09da61d2b0d2f052c7232
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Thu Sep 26 13:09:19 2024 -0700

    kernel: leds-ws2812b: remove sub 6.6 support
    
    5.15 and 6.1 are gone.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/16587
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/kernel/leds-ws2812b/src/leds-ws2812b.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/package/kernel/leds-ws2812b/src/leds-ws2812b.c b/package/kernel/leds-ws2812b/src/leds-ws2812b.c
index 69bc575ba2..d061ee9dce 100644
--- a/package/kernel/leds-ws2812b/src/leds-ws2812b.c
+++ b/package/kernel/leds-ws2812b/src/leds-ws2812b.c
@@ -189,19 +189,11 @@ ERR_UNREG_LEDS:
 	return ret;
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,18,0)
 static void ws2812b_remove(struct spi_device *spi)
-#else
-static int ws2812b_remove(struct spi_device *spi)
-#endif
 {
 	struct ws2812b_priv *priv = spi_get_drvdata(spi);
 
 	mutex_destroy(&priv->mutex);
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
-	return 0;
-#endif
 }
 
 static const struct spi_device_id ws2812b_spi_ids[] = {




More information about the lede-commits mailing list