mmc: tmio: Fix build error without CONFIG_MMC_SDHI
authorPaul Parsons <lost.distance@yahoo.com>
Thu, 30 Jun 2011 15:50:12 +0000 (11:50 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 20 Jul 2011 21:21:00 +0000 (17:21 -0400)
Only compile tmio_mmc_dma.o when CONFIG_MMC_SDHI is selected (as y or m).

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/Makefile

index cf9533021f9e94b90239ff9c373522ecc452fdbd..b4b83f302e325f52a9d138884644cf8c9eb52819 100644 (file)
@@ -32,9 +32,7 @@ obj-$(CONFIG_MMC_SDRICOH_CS)  += sdricoh_cs.o
 obj-$(CONFIG_MMC_TMIO)         += tmio_mmc.o
 obj-$(CONFIG_MMC_TMIO_CORE)    += tmio_mmc_core.o
 tmio_mmc_core-y                        := tmio_mmc_pio.o
-ifneq ($(CONFIG_MMC_SDHI),n)
-tmio_mmc_core-y                        += tmio_mmc_dma.o
-endif
+tmio_mmc_core-$(subst m,y,$(CONFIG_MMC_SDHI))  += tmio_mmc_dma.o
 obj-$(CONFIG_MMC_SDHI)         += sh_mobile_sdhi.o
 obj-$(CONFIG_MMC_CB710)                += cb710-mmc.o
 obj-$(CONFIG_MMC_VIA_SDMMC)    += via-sdmmc.o