[RFC PATCH 04/21] mmc: sdhci-of-arasan: consolidate parsing path
Shawn Lin
shawn.lin at rock-chips.com
Tue Jan 26 21:06:50 PST 2016
This patch remove mmc_of_parse and check return value
of sdhci_get_of_property.
Cc: Michal Simek <michal.simek at xilinx.com>
Cc: soren.brinkmann at xilinx.com
Signed-off-by: Shawn Lin <shawn.lin at rock-chips.com>
---
drivers/mmc/host/sdhci-of-arasan.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c
index 75379cb..b653ec7 100644
--- a/drivers/mmc/host/sdhci-of-arasan.c
+++ b/drivers/mmc/host/sdhci-of-arasan.c
@@ -177,17 +177,14 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
host->quirks2 |= SDHCI_QUIRK2_HOST_NO_CMD23;
}
- sdhci_get_of_property(pdev);
+ ret = sdhci_get_of_property(pdev);
+ if (ret)
+ goto clk_disable_all;
+
pltfm_host = sdhci_priv(host);
pltfm_host->priv = sdhci_arasan;
pltfm_host->clk = clk_xin;
- ret = mmc_of_parse(host->mmc);
- if (ret) {
- dev_err(&pdev->dev, "parsing dt failed (%u)\n", ret);
- goto clk_disable_all;
- }
-
ret = sdhci_add_host(host);
if (ret)
goto err_pltfm_free;
--
2.3.7
More information about the linux-rpi-kernel
mailing list