kernel: exclude regmap-spi.ko if SPI support cannot be selected

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38245
This commit is contained in:
Felix Fietkau 2013-09-27 21:12:15 +00:00
parent 3e2aa6105c
commit e2420239ae

View file

@ -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