mmc:host:tegra: make embedded sdio code conditional
Mursalin Akon [Fri, 16 Mar 2012 16:40:34 +0000 (09:40 -0700)]
Enable embedded sdio code, iff MMC_EMBEDDED_SDIO
Kconfig is on.

Bug 956238

Change-Id: I16539f5cad5fc66082af2f569ea36a54c12457e3
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/90655
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

drivers/mmc/host/sdhci-tegra.c

index 5f6dd8d..dbcc70b 100644 (file)
@@ -1187,9 +1187,11 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev)
                host->mmc->caps |= MMC_CAP_NONREMOVABLE;
                host->mmc->pm_flags |= MMC_PM_IGNORE_PM_NOTIFY;
        }
+#ifdef CONFIG_MMC_EMBEDDED_SDIO
        /* Do not turn OFF embedded sdio cards as it support Wake on Wireless */
        if (plat->mmc_data.embedded_sdio)
                host->mmc->pm_flags |= MMC_PM_KEEP_POWER;
+#endif
 
        tegra_sdhost_min_freq = TEGRA_SDHOST_MIN_FREQ;
 #ifdef CONFIG_ARCH_TEGRA_2x_SOC