diff mbox series

[v2] kernel/modules: fix CDC NCM dependencies

Message ID 20210303142417.476235-1-rsalvaterra@gmail.com
State Accepted
Delegated to: Petr Štetiar
Headers show
Series [v2] kernel/modules: fix CDC NCM dependencies | expand

Commit Message

Rui Salvaterra March 3, 2021, 2:24 p.m. UTC
CDC NCM support only depends on CDC Ethernet with Linux 5.10. Fix thusly.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
v2: Invert the kernel version check.

 package/kernel/linux/modules/usb.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index e7498af31c..9ef3fb5974 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -1387,7 +1387,7 @@  define KernelPackage/usb-net-cdc-ncm
   FILES:= $(LINUX_DIR)/drivers/$(USBNET_DIR)/cdc_ncm.ko
   AUTOLOAD:=$(call AutoProbe,cdc_ncm)
-  $(call AddDepends/usb-net,+kmod-usb-net-cdc-ether)
+  $(call AddDepends/usb-net,+!LINUX_5_4:kmod-usb-net-cdc-ether)
 define KernelPackage/usb-net-cdc-ncm/description