diff mbox

[v2] mmc: tmio: Fix build errors

Message ID E1QMHgG-0005TP-JM@outmx04.plus.net (mailing list archive)
State New, archived
Headers show

Commit Message

Paul Parsons May 17, 2011, 10:39 a.m. UTC
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>
---

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- clean-2.6.39-rc7/drivers/mmc/host/Makefile	2011-05-17 01:53:37.280446658 +0100
+++ linux-2.6.39-rc7/drivers/mmc/host/Makefile	2011-05-17 02:15:56.959621818 +0100
@@ -31,9 +31,7 @@  obj-$(CONFIG_MMC_SDRICOH_CS)	+= sdricoh_
 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