aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-27 21:12:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-09-27 21:12:15 +0000
commit5cceea6f3442d1a018655f235ae6aaa8ebd1cd62 (patch)
tree4f42cb90b99dfcd11b5c691a67b1362852d98655 /package/kernel
parent5162f4c405a012f87c744a49cb38785f82b30d84 (diff)
downloadmaster-187ad058-5cceea6f3442d1a018655f235ae6aaa8ebd1cd62.tar.gz
master-187ad058-5cceea6f3442d1a018655f235ae6aaa8ebd1cd62.tar.bz2
master-187ad058-5cceea6f3442d1a018655f235ae6aaa8ebd1cd62.zip
kernel: exclude regmap-spi.ko if SPI support cannot be selected
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38245 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/linux/modules/other.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index b3e268e79c..bd8b357309 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