summaryrefslogtreecommitdiff
path: root/package/kernel/linux/modules/spi.mk
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-07-19 14:13:45 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-07-19 14:13:45 +0000
commitde7fbf1498dc37a4abddbc7711b2ad52a4b3bfa2 (patch)
treed4cd2bdd10c70023b9e7d14a5498bce668c6e267 /package/kernel/linux/modules/spi.mk
parente5c3d9b6c0075c705e75dca59122336ef68ab05c (diff)
kernel: add missing module for mmc-spi
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37440 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/linux/modules/spi.mk')
-rw-r--r--package/kernel/linux/modules/spi.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/kernel/linux/modules/spi.mk b/package/kernel/linux/modules/spi.mk
index 416209825f..435fd74b11 100644
--- a/package/kernel/linux/modules/spi.mk
+++ b/package/kernel/linux/modules/spi.mk
@@ -14,8 +14,10 @@ define KernelPackage/mmc-spi
KCONFIG:=CONFIG_MMC_SPI \
CONFIG_SPI=y \
CONFIG_SPI_MASTER=y
- FILES:=$(LINUX_DIR)/drivers/mmc/host/mmc_spi.ko
- AUTOLOAD:=$(call AutoLoad,90,mmc_spi)
+ FILES:=\
+ $(if $(CONFIG_OF),$(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko) \
+ $(LINUX_DIR)/drivers/mmc/host/mmc_spi.ko
+ AUTOLOAD:=$(call AutoLoad,90,$(if $(CONFIG_OF),of_mmc_spi) mmc_spi)
endef
define KernelPackage/mmc-spi/description