diff options
Diffstat (limited to 'drivers/mmc/host/sdhci-tegra.c')
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index d43e7462941f..f9eb91623701 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c | |||
@@ -27,7 +27,6 @@ | |||
27 | 27 | ||
28 | #include <asm/gpio.h> | 28 | #include <asm/gpio.h> |
29 | 29 | ||
30 | #include <mach/gpio-tegra.h> | ||
31 | #include <linux/platform_data/mmc-sdhci-tegra.h> | 30 | #include <linux/platform_data/mmc-sdhci-tegra.h> |
32 | 31 | ||
33 | #include "sdhci-pltfm.h" | 32 | #include "sdhci-pltfm.h" |
@@ -257,10 +256,9 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev) | |||
257 | int rc; | 256 | int rc; |
258 | 257 | ||
259 | match = of_match_device(sdhci_tegra_dt_match, &pdev->dev); | 258 | match = of_match_device(sdhci_tegra_dt_match, &pdev->dev); |
260 | if (match) | 259 | if (!match) |
261 | soc_data = match->data; | 260 | return -EINVAL; |
262 | else | 261 | soc_data = match->data; |
263 | soc_data = &soc_data_tegra20; | ||
264 | 262 | ||
265 | host = sdhci_pltfm_init(pdev, soc_data->pdata); | 263 | host = sdhci_pltfm_init(pdev, soc_data->pdata); |
266 | if (IS_ERR(host)) | 264 | if (IS_ERR(host)) |