mmc: sdhci-of-arasan: Omit superfluous error messages
authorMike Looijmans <mike.looijmans@topic.nl>
Tue, 28 Oct 2014 07:53:21 +0000 (08:53 +0100)
committerlintao <lintao@rock-chips.com>
Mon, 4 May 2015 03:43:20 +0000 (11:43 +0800)
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>
drivers/mmc/host/sdhci-of-arasan.c

index 046ad3da8ad690a8b6d54befa4c52ff208f7d9dc..80700a07c8e37952f205e31159a574adb8959da7 100644 (file)
@@ -161,7 +161,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;
        }
 
@@ -177,10 +176,8 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
        }
 
        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;