summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Looijmans <mike.looijmans@topic.nl>2014-10-28 08:53:21 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2014-11-10 12:40:46 +0100
commitb1df9de75cd5d53f715894bcd428da450ca0b66a (patch)
treef14c33dc92fcb3eaa8499a431064664e34e69882
parent22b787007faed44456414f7ed88331e39f0df387 (diff)
downloadlinux-b1df9de75cd5d53f715894bcd428da450ca0b66a.tar.gz
linux-b1df9de75cd5d53f715894bcd428da450ca0b66a.tar.bz2
linux-b1df9de75cd5d53f715894bcd428da450ca0b66a.zip
mmc: sdhci-of-arasan: Omit superfluous error messages
sdhci_add_host and sdhci_platfm_init already report failure, so don't emit error messages when a failure occurs. This prevents occurences of "deferred" messages when required power supplies are not ready for operation yet. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/sdhci-of-arasan.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c
index 5f10c22ea3aa..bcb51e9dfdcd 100644
--- a/drivers/mmc/host/sdhci-of-arasan.c
+++ b/drivers/mmc/host/sdhci-of-arasan.c
@@ -165,7 +165,6 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
host = sdhci_pltfm_init(pdev, &sdhci_arasan_pdata, 0);
if (IS_ERR(host)) {
ret = PTR_ERR(host);
- dev_err(&pdev->dev, "platform init failed (%d)\n", ret);
goto clk_disable_all;
}
@@ -175,10 +174,8 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
pltfm_host->clk = clk_xin;
ret = sdhci_add_host(host);
- if (ret) {
- dev_err(&pdev->dev, "platform register failed (%d)\n", ret);
+ if (ret)
goto err_pltfm_free;
- }
return 0;