ARM: OMAP2+: Make sure pandora_wl1251_init_card() applies to SDIO only
authorDoug Anderson <dianders@chromium.org>
Tue, 2 Dec 2014 23:42:44 +0000 (15:42 -0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:04 +0000 (09:56 +0100)
In preparation for having init_card() called for all card types (not
just SDIO), change pandora_wl1251_init_card() so it checks whether the
card type is SDIO.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
arch/arm/mach-omap2/board-omap3pandora.c

index 7f17087..969e100 100644 (file)
@@ -254,12 +254,14 @@ static void pandora_wl1251_init_card(struct mmc_card *card)
         * We have TI wl1251 attached to MMC3. Pass this information to
         * SDIO core because it can't be probed by normal methods.
         */
-       card->quirks |= MMC_QUIRK_NONSTD_SDIO;
-       card->cccr.wide_bus = 1;
-       card->cis.vendor = 0x104c;
-       card->cis.device = 0x9066;
-       card->cis.blksize = 512;
-       card->cis.max_dtr = 20000000;
+       if (card->type == MMC_TYPE_SDIO || card->type == MMC_TYPE_SD_COMBO) {
+               card->quirks |= MMC_QUIRK_NONSTD_SDIO;
+               card->cccr.wide_bus = 1;
+               card->cis.vendor = 0x104c;
+               card->cis.device = 0x9066;
+               card->cis.blksize = 512;
+               card->cis.max_dtr = 20000000;
+       }
 }
 
 static struct omap2_hsmmc_info omap3pandora_mmc[] = {