From c0db33df893eef40ce45787e7c827e4ea1a22f29 Mon Sep 17 00:00:00 2001 From: Bo Yan Date: Tue, 31 Jul 2012 11:03:18 -0700 Subject: mmc: tegra: Fix build break Fix build break due to misplaced conditional compilation macros Change-Id: I1ed554a25a9123c94d85c08371a77350292b58e5 Signed-off-by: Bo Yan Reviewed-on: http://git-master/r/119725 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Naveen Kumar Arepalli --- drivers/mmc/host/sdhci-tegra.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index d8a24783d2f5..03406a05d4e7 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -86,9 +86,10 @@ static void tegra3_sdhci_post_reset_init(struct sdhci_host *sdhci); static void tegra11x_sdhci_post_reset_init(struct sdhci_host *sdhci); #endif -#ifndef CONFIG_ARCH_TEGRA_2x_SOC static unsigned int tegra_sdhost_min_freq; static unsigned int tegra_sdhost_std_freq; + +#ifndef CONFIG_ARCH_TEGRA_2x_SOC static unsigned int tegra3_sdhost_max_clk[4] = { 208000000, 104000000, 208000000, 104000000 }; #endif @@ -228,6 +229,7 @@ static unsigned int tegra_sdhci_get_ro(struct sdhci_host *sdhci) return gpio_get_value(plat->wp_gpio); } +#if defined(CONFIG_ARCH_TEGRA_3x_SOC) static void tegra3_sdhci_post_reset_init(struct sdhci_host *sdhci) { u16 misc_ctrl; @@ -262,6 +264,7 @@ static void tegra3_sdhci_post_reset_init(struct sdhci_host *sdhci) SDHCI_VENDOR_MISC_CNTRL_ENABLE_SDR50_SUPPORT; sdhci_writew(sdhci, misc_ctrl, SDHCI_VENDOR_MISC_CNTRL); } +#endif #ifdef CONFIG_ARCH_TEGRA_11x_SOC static void tegra11x_sdhci_post_reset_init(struct sdhci_host *sdhci) -- cgit v1.2.3