[RFC PATCH 03/21] mmc: sdhci-msm: consolidate parsing path
From: Shawn Lin
Date: Wed Jan 27 2016 - 00:11:18 EST
This patch remove mmc_of_parse and check return value
of sdhci_get_of_property.
Cc: Georgi Djakov <georgi.djakov@xxxxxxxxxx>
Signed-off-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx>
---
drivers/mmc/host/sdhci-msm.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
index 4695bee..dfc6016 100644
--- a/drivers/mmc/host/sdhci-msm.c
+++ b/drivers/mmc/host/sdhci-msm.c
@@ -451,12 +451,10 @@ static int sdhci_msm_probe(struct platform_device *pdev)
msm_host->mmc = host->mmc;
msm_host->pdev = pdev;
- ret = mmc_of_parse(host->mmc);
+ ret = sdhci_get_of_property(pdev);
if (ret)
goto pltfm_free;
- sdhci_get_of_property(pdev);
-
/* Setup SDCC bus voter clock. */
msm_host->bus_clk = devm_clk_get(&pdev->dev, "bus");
if (!IS_ERR(msm_host->bus_clk)) {
--
2.3.7