mt76: switch to AutoProbe

Now that we have working module dependency generation, we can switch to
AutoProbe and let modprobe handle loading required modules.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
This commit is contained in:
Jonas Gorski 2017-07-24 11:16:21 +02:00
parent 3689f7c8ef
commit 5df30a169c

View file

@ -39,7 +39,6 @@ define KernelPackage/mt76-core
TITLE:=MediaTek MT76xx wireless driver TITLE:=MediaTek MT76xx wireless driver
FILES:=\ FILES:=\
$(PKG_BUILD_DIR)/mt76.ko $(PKG_BUILD_DIR)/mt76.ko
AUTOLOAD:=$(call AutoLoad,50,mac80211 mt76)
endef endef
define KernelPackage/mt76x2 define KernelPackage/mt76x2
@ -48,7 +47,7 @@ define KernelPackage/mt76x2
DEPENDS+=+kmod-mt76-core DEPENDS+=+kmod-mt76-core
FILES:=\ FILES:=\
$(PKG_BUILD_DIR)/mt76x2e.ko $(PKG_BUILD_DIR)/mt76x2e.ko
AUTOLOAD:=$(call AutoLoad,51,mt76x2e) AUTOLOAD:=$(call AutoProbe,mt76x2e)
endef endef
define KernelPackage/mt7603 define KernelPackage/mt7603
@ -57,7 +56,7 @@ define KernelPackage/mt7603
DEPENDS+=+kmod-mt76-core DEPENDS+=+kmod-mt76-core
FILES:=\ FILES:=\
$(PKG_BUILD_DIR)/mt7603e.ko $(PKG_BUILD_DIR)/mt7603e.ko
AUTOLOAD:=$(call AutoLoad,51,mt7603e) AUTOLOAD:=$(call AutoProbe,mt7603e)
endef endef
NOSTDINC_FLAGS = \ NOSTDINC_FLAGS = \