]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/mmc.h
mmc: size optimization when !CONFIG_MMC_SPI
[karo-tx-uboot.git] / include / mmc.h
index 228d77139d5682e9f249a0f8ff21e8bee9625150..214b9edc8d22144b009178af3e13829ccc92ebe5 100644 (file)
@@ -335,7 +335,11 @@ int mmc_start_init(struct mmc *mmc);
 void mmc_set_preinit(struct mmc *mmc, int preinit);
 
 #ifdef CONFIG_GENERIC_MMC
+#ifdef CONFIG_MMC_SPI
 #define mmc_host_is_spi(mmc)   ((mmc)->host_caps & MMC_MODE_SPI)
+#else
+#define mmc_host_is_spi(mmc)   0
+#endif
 struct mmc *mmc_spi_init(uint bus, uint cs, uint speed, uint mode);
 #else
 int mmc_legacy_init(int verbose);