lkml.org 
[lkml]   [2016]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 03/21] mmc: sdhci-msm: consolidate parsing path
Date
This patch remove mmc_of_parse and check return value
of sdhci_get_of_property.

Cc: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Shawn Lin <shawn.lin@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

\
 
 \ /
  Last update: 2016-01-27 07:01    [W:0.150 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site