diff options
author | Rhyland Klein <rklein@nvidia.com> | 2013-02-20 13:35:16 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-06 18:33:44 -0500 |
commit | 76f3ae125f3ca777cc831d475d17184641d5bc46 (patch) | |
tree | 34e5d1736d071fc030753c97f49b7f3c560f809d | |
parent | adf96e6f514a9e87aa3d26c8c9c03eca5be53df0 (diff) |
mmc: sdhci-tegra: cleanup ifdefs
The structs wrapped with the SOC ifdefs are small enough where having
them always there shouldn't be a big overhead. Removing the ifdefs
also makes the code a little cleaner.
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 08b06e9a3a21..73009713640e 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c | |||
@@ -173,7 +173,6 @@ static struct sdhci_ops tegra_sdhci_ops = { | |||
173 | .platform_reset_exit = tegra_sdhci_reset_exit, | 173 | .platform_reset_exit = tegra_sdhci_reset_exit, |
174 | }; | 174 | }; |
175 | 175 | ||
176 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC | ||
177 | static struct sdhci_pltfm_data sdhci_tegra20_pdata = { | 176 | static struct sdhci_pltfm_data sdhci_tegra20_pdata = { |
178 | .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL | | 177 | .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL | |
179 | SDHCI_QUIRK_SINGLE_POWER_WRITE | | 178 | SDHCI_QUIRK_SINGLE_POWER_WRITE | |
@@ -187,9 +186,7 @@ static struct sdhci_tegra_soc_data soc_data_tegra20 = { | |||
187 | .nvquirks = NVQUIRK_FORCE_SDHCI_SPEC_200 | | 186 | .nvquirks = NVQUIRK_FORCE_SDHCI_SPEC_200 | |
188 | NVQUIRK_ENABLE_BLOCK_GAP_DET, | 187 | NVQUIRK_ENABLE_BLOCK_GAP_DET, |
189 | }; | 188 | }; |
190 | #endif | ||
191 | 189 | ||
192 | #ifdef CONFIG_ARCH_TEGRA_3x_SOC | ||
193 | static struct sdhci_pltfm_data sdhci_tegra30_pdata = { | 190 | static struct sdhci_pltfm_data sdhci_tegra30_pdata = { |
194 | .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL | | 191 | .quirks = SDHCI_QUIRK_BROKEN_TIMEOUT_VAL | |
195 | SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | | 192 | SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | |
@@ -203,15 +200,10 @@ static struct sdhci_tegra_soc_data soc_data_tegra30 = { | |||
203 | .pdata = &sdhci_tegra30_pdata, | 200 | .pdata = &sdhci_tegra30_pdata, |
204 | .nvquirks = NVQUIRK_ENABLE_SDHCI_SPEC_300, | 201 | .nvquirks = NVQUIRK_ENABLE_SDHCI_SPEC_300, |
205 | }; | 202 | }; |
206 | #endif | ||
207 | 203 | ||
208 | static const struct of_device_id sdhci_tegra_dt_match[] = { | 204 | static const struct of_device_id sdhci_tegra_dt_match[] = { |
209 | #ifdef CONFIG_ARCH_TEGRA_3x_SOC | ||
210 | { .compatible = "nvidia,tegra30-sdhci", .data = &soc_data_tegra30 }, | 205 | { .compatible = "nvidia,tegra30-sdhci", .data = &soc_data_tegra30 }, |
211 | #endif | ||
212 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC | ||
213 | { .compatible = "nvidia,tegra20-sdhci", .data = &soc_data_tegra20 }, | 206 | { .compatible = "nvidia,tegra20-sdhci", .data = &soc_data_tegra20 }, |
214 | #endif | ||
215 | {} | 207 | {} |
216 | }; | 208 | }; |
217 | MODULE_DEVICE_TABLE(of, sdhci_dt_ids); | 209 | MODULE_DEVICE_TABLE(of, sdhci_dt_ids); |