modules: leds: prepare for kernel 4.19
authorMarko Ratkaj <marko.ratkaj@sartura.hr>
Wed, 19 Sep 2018 10:47:22 +0000 (12:47 +0200)
committerZoltan HERPAI <wigyori@uid0.hu>
Thu, 4 Oct 2018 15:31:27 +0000 (17:31 +0200)
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 <marko.ratkaj@sartura.hr>
package/kernel/linux/modules/leds.mk

index 7019f047798606983eba923c45a104bf53c381b7..49daf4e6bb67b537e9e540e925b8687fc5c8bf80 100644 (file)
@@ -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