mmc: sdhci-esdhc-imx: Move mmc_of_parse() to the dt probe
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 9 May 2015 12:57:08 +0000 (09:57 -0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Jun 2015 07:07:00 +0000 (09:07 +0200)
mmc_of_parse() should be placed inside sdhci_esdhc_imx_probe_dt() as it
suits only for the dt case.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c

index 8eed84326e2feca14c1e1da7fc12402987190e03..0107eb315b55b8a5395ed1de7c71e594da250821 100644 (file)
@@ -903,7 +903,8 @@ sdhci_esdhc_imx_probe_dt(struct platform_device *pdev,
 
        mmc_of_parse_voltage(np, &host->ocr_mask);
 
-       return 0;
+       /* call to generic mmc_of_parse to support additional capabilities */
+       return mmc_of_parse(host->mmc);
 }
 #else
 static inline int
@@ -1048,11 +1049,6 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
                host->quirks2 |= SDHCI_QUIRK2_NO_1_8_V;
        }
 
-       /* call to generic mmc_of_parse to support additional capabilities */
-       err = mmc_of_parse(host->mmc);
-       if (err)
-               goto disable_clk;
-
        err = sdhci_add_host(host);
        if (err)
                goto disable_clk;