[RFC PATCH 03/21] mmc: sdhci-msm: consolidate parsing path

Shawn Lin shawn.lin at rock-chips.com
Tue Jan 26 21:04:52 PST 2016


This patch remove mmc_of_parse and check return value
of sdhci_get_of_property.

Cc: Georgi Djakov <georgi.djakov at linaro.org>
Signed-off-by: Shawn Lin <shawn.lin at rock-chips.com>
---

 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





More information about the linux-rpi-kernel mailing list