From 79b9687b6092159f7e060e1714401b24cd220a7f Mon Sep 17 00:00:00 2001 From: Marko Ratkaj Date: Wed, 19 Sep 2018 12:47:22 +0200 Subject: [PATCH] modules: leds: prepare for kernel 4.19 Location of ledtrig-netdev.ko module changed from ./drivers/leds/ to ./drivers/leds/trigger/ with kernel 4.19. With this patch we preserve compatibility with older kernels. Signed-off-by: Marko Ratkaj --- package/kernel/linux/modules/leds.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk index 7019f04779..49daf4e6bb 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -58,7 +58,9 @@ define KernelPackage/ledtrig-netdev SUBMENU:=$(LEDS_MENU) TITLE:=LED NETDEV Trigger KCONFIG:=CONFIG_LEDS_TRIGGER_NETDEV - FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-netdev.ko + FILES:= \ + $(LINUX_DIR)/drivers/leds/ledtrig-netdev.ko@lt4.19 \ + $(LINUX_DIR)/drivers/leds/trigger/ledtrig-netdev.ko@ge4.19 AUTOLOAD:=$(call AutoLoad,50,ledtrig-netdev) endef -- 2.30.2