X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=drivers%2Fmmc%2Fhost%2Fsdhci-tegra.c;h=436186ccbbe21c3158426b5c362228fd0b95fe84;hb=b37f9d98f3d28ad98cc6c1894159312914f49190;hp=0810ccc23d7e8fb951fecf7b75774b2ae4e5984e;hpb=c511dc1fb6bee58363eb203d53393784f2589d02;p=cascardo%2Flinux.git diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 0810ccc23d7e..436186ccbbe2 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -257,10 +257,9 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev) int rc; match = of_match_device(sdhci_tegra_dt_match, &pdev->dev); - if (match) - soc_data = match->data; - else - soc_data = &soc_data_tegra20; + if (!match) + return -EINVAL; + soc_data = match->data; host = sdhci_pltfm_init(pdev, soc_data->pdata); if (IS_ERR(host))