Skip to content

Commit

Permalink
mmc: sdhci-of-arasan: Omit superfluous error messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Looijmans authored and Ulf Hansson committed Nov 10, 2014
1 parent 22b7870 commit b1df9de
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mmc/host/sdhci-of-arasan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand 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;

Expand Down

0 comments on commit b1df9de

Please sign in to comment.