[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1453871256-3599-1-git-send-email-shawn.lin@rock-chips.com>
Date: Wed, 27 Jan 2016 13:07:36 +0800
From: Shawn Lin <shawn.lin@...k-chips.com>
To: Ulf Hansson <ulf.hansson@...aro.org>
Cc: bcm-kernel-feedback-list@...adcom.com,
linux-rpi-kernel@...ts.infradead.org, linux-mmc@...r.kernel.org,
linux-kernel@...r.kernel.org, Shawn Lin <shawn.lin@...k-chips.com>,
Jisheng Zhang <jszhang@...vell.com>,
Gregory CLEMENT <gregory.clement@...e-electrons.com>
Subject: [RFC PATCH 07/21] mmc: sdhci-pxav3: consolidate parsing path
This patch remove mmc_of_parse and check return value
of sdhci_get_of_property.
Cc: Jisheng Zhang <jszhang@...vell.com>
Cc: Gregory CLEMENT <gregory.clement@...e-electrons.com>
Signed-off-by: Shawn Lin <shawn.lin@...k-chips.com>
---
drivers/mmc/host/sdhci-pxav3.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c
index f5edf9d..06eda25 100644
--- a/drivers/mmc/host/sdhci-pxav3.c
+++ b/drivers/mmc/host/sdhci-pxav3.c
@@ -410,10 +410,8 @@ static int sdhci_pxav3_probe(struct platform_device *pdev)
match = of_match_device(of_match_ptr(sdhci_pxav3_of_match), &pdev->dev);
if (match) {
- ret = mmc_of_parse(host->mmc);
- if (ret)
+ ret = sdhci_get_of_property(pdev);
goto err_of_parse;
- sdhci_get_of_property(pdev);
pdata = pxav3_get_mmc_pdata(dev);
pdev->dev.platform_data = pdata;
} else if (pdata) {
--
2.3.7
Powered by blists - more mailing lists