diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-09-27 21:12:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-09-27 21:12:15 +0000 |
commit | e2420239ae266cb4f186c403f19abb73ec66c155 (patch) | |
tree | 8d3471f395f8945ea20ca62e6974a567a6a82c38 /package/kernel/linux | |
parent | 3e2aa6105cd0fcf63fa3adb58fe4240c3b0ff92d (diff) | |
download | mtk-20170518-e2420239ae266cb4f186c403f19abb73ec66c155.zip mtk-20170518-e2420239ae266cb4f186c403f19abb73ec66c155.tar.gz mtk-20170518-e2420239ae266cb4f186c403f19abb73ec66c155.tar.bz2 |
kernel: exclude regmap-spi.ko if SPI support cannot be selected
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38245
Diffstat (limited to 'package/kernel/linux')
-rw-r--r-- | package/kernel/linux/modules/other.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index b3e268e..bd8b357 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -634,7 +634,7 @@ define KernelPackage/regmap FILES:= \ $(LINUX_DIR)/drivers/base/regmap/regmap-core.ko \ $(LINUX_DIR)/drivers/base/regmap/regmap-i2c.ko \ - $(LINUX_DIR)/drivers/base/regmap/regmap-spi.ko + $(if $(CONFIG_SPI),$(LINUX_DIR)/drivers/base/regmap/regmap-spi.ko) AUTOLOAD:=$(call AutoLoad,21,regmap-core regmap-i2c regmap-spi) endef |