[RFC PATCH 05/21] mmc: sdhci-of-at91: consolidate parsing path
From: Shawn Lin
Date: Wed Jan 27 2016 - 00:11:40 EST
This patch remove mmc_of_parse and check return value
of sdhci_get_of_property.
Cc: Ludovic Desroches <ludovic.desroches@xxxxxxxxx>
Signed-off-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx>
---
drivers/mmc/host/sdhci-of-at91.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mmc/host/sdhci-of-at91.c b/drivers/mmc/host/sdhci-of-at91.c
index 7e7d8f0..93b1530 100644
--- a/drivers/mmc/host/sdhci-of-at91.c
+++ b/drivers/mmc/host/sdhci-of-at91.c
@@ -194,12 +194,10 @@ static int sdhci_at91_probe(struct platform_device *pdev)
pltfm_host = sdhci_priv(host);
pltfm_host->priv = priv;
- ret = mmc_of_parse(host->mmc);
+ ret = sdhci_get_of_property(pdev);
if (ret)
goto clocks_disable_unprepare;
- sdhci_get_of_property(pdev);
-
pm_runtime_get_noresume(&pdev->dev);
pm_runtime_set_active(&pdev->dev);
pm_runtime_enable(&pdev->dev);
--
2.3.7