kernel: add missing module for mmc-spi
authorFelix Fietkau <nbd@openwrt.org>
Fri, 19 Jul 2013 14:13:45 +0000 (14:13 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 19 Jul 2013 14:13:45 +0000 (14:13 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37440

package/kernel/linux/modules/spi.mk

index 416209825f57cbf1857d1718da3925561ec50465..435fd74b11c5b0b15dc2a39173207da92803efca 100644 (file)
@@ -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