From: Tom Rini Date: Wed, 12 Oct 2011 06:20:50 +0000 (+0000) Subject: mmc: omap: Allow OMAP_HSMMC[23]_BASE to be unset X-Git-Tag: v2011.12-rc1~343^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1037d585d3a4e8f1dceb504c0089f7cc16abdb8c;p=u-boot 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 --- 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;