mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-29 10:02:23 +00:00
kernel: leds-ws2812b: remove sub 6.6 support
5.15 and 6.1 are gone. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16587 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
63a92188fb
commit
e15aab2a17
@ -189,19 +189,11 @@ ERR_UNREG_LEDS:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,18,0)
|
|
||||||
static void ws2812b_remove(struct spi_device *spi)
|
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);
|
struct ws2812b_priv *priv = spi_get_drvdata(spi);
|
||||||
|
|
||||||
mutex_destroy(&priv->mutex);
|
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[] = {
|
static const struct spi_device_id ws2812b_spi_ids[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user