[PATCH 1/2] kernel: wpan: Add missing AUTOLOAD to load kernel module

Hauke Mehrtens hauke at hauke-m.de
Sat Aug 15 14:01:06 EDT 2020


These kernel modules were not loaded automatically, fix this by adding
the AUTOLOAD definition.

Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/linux/modules/wpan.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/kernel/linux/modules/wpan.mk b/package/kernel/linux/modules/wpan.mk
index 053fa1e4bf1d..1de7f39b66c0 100644
--- a/package/kernel/linux/modules/wpan.mk
+++ b/package/kernel/linux/modules/wpan.mk
@@ -88,6 +88,7 @@ define KernelPackage/at86rf230
 	CONFIG_SPI=y \
 	CONFIG_SPI_MASTER=y
   FILES:=$(LINUX_DIR)/drivers/net/ieee802154/at86rf230.ko
+  AUTOLOAD:=$(call AutoProbe,at86rf230)
 endef
 
 $(eval $(call KernelPackage,at86rf230))
@@ -100,6 +101,7 @@ define KernelPackage/mrf24j40
 	CONFIG_SPI=y \
 	CONFIG_SPI_MASTER=y
   FILES:=$(LINUX_DIR)/drivers/net/ieee802154/mrf24j40.ko
+  AUTOLOAD:=$(call AutoProbe,mrf24j40)
 endef
 
 $(eval $(call KernelPackage,mrf24j40))
@@ -112,6 +114,7 @@ define KernelPackage/cc2520
 	CONFIG_SPI=y \
 	CONFIG_SPI_MASTER=y
   FILES:=$(LINUX_DIR)/drivers/net/ieee802154/cc2520.ko
+  AUTOLOAD:=$(call AutoProbe,cc2520)
 endef
 
 $(eval $(call KernelPackage,cc2520))
-- 
2.20.1




More information about the openwrt-devel mailing list