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>
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