From 1037d585d3a4e8f1dceb504c0089f7cc16abdb8c Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 12 Oct 2011 06:20:50 +0000 Subject: [PATCH] mmc: omap: Allow OMAP_HSMMC[23]_BASE to be unset Not all omap families define OMAP_HSMMC[23]_BASE so condition those cases in omap_mmc_init(). Cc: Sandeep Paulraj Signed-off-by: Tom Rini Signed-off-by: Sandeep Paulraj --- drivers/mmc/omap_hsmmc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 5d4cf51104..ebda980fbc 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -475,12 +475,16 @@ int omap_mmc_init(int dev_index) case 0: mmc->priv = (hsmmc_t *)OMAP_HSMMC1_BASE; break; +#ifdef OMAP_HSMMC2_BASE case 1: mmc->priv = (hsmmc_t *)OMAP_HSMMC2_BASE; break; +#endif +#ifdef OMAP_HSMMC3_BASE case 2: mmc->priv = (hsmmc_t *)OMAP_HSMMC3_BASE; break; +#endif default: mmc->priv = (hsmmc_t *)OMAP_HSMMC1_BASE; return 1; -- 2.39.5