]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: omap: Allow OMAP_HSMMC[23]_BASE to be unset
authorTom Rini <trini@ti.com>
Wed, 12 Oct 2011 06:20:50 +0000 (06:20 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 27 Oct 2011 19:56:35 +0000 (21:56 +0200)
Not all omap families define OMAP_HSMMC[23]_BASE so condition those
cases in omap_mmc_init().

Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
drivers/mmc/omap_hsmmc.c

index 5d4cf51104a7936377dc27a2f18e8240ada9a24a..ebda980fbcbc4a2b4d2c6bdda7e3f068a3198d80 100644 (file)
@@ -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;