From: Fabio Estevam Date: Sat, 9 May 2015 12:57:08 +0000 (-0300) Subject: mmc: sdhci-esdhc-imx: Move mmc_of_parse() to the dt probe X-Git-Tag: v5.15~15618^2~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15064119273735c115fba381823b0746508bae3a;p=platform%2Fkernel%2Flinux-starfive.git mmc: sdhci-esdhc-imx: Move mmc_of_parse() to the dt probe 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 Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 8eed843..0107eb3 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -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;