mmc: sunxi: drop superfluous error message
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 8 Oct 2017 14:50:08 +0000 (16:50 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 Oct 2017 10:46:03 +0000 (11:46 +0100)
This error message can go because a) currently nothing else than
EPROBE_DEFER is returned and b) if this is going to change a much more
detailed error message should come from mmc_regulator_get_supply()
anyhow.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c

index 53c970f..cc98355 100644 (file)
@@ -1175,11 +1175,8 @@ static int sunxi_mmc_resource_request(struct sunxi_mmc_host *host,
                return -EINVAL;
 
        ret = mmc_regulator_get_supply(host->mmc);
-       if (ret) {
-               if (ret != -EPROBE_DEFER)
-                       dev_err(&pdev->dev, "Could not get vmmc supply\n");
+       if (ret)
                return ret;
-       }
 
        host->reg_base = devm_ioremap_resource(&pdev->dev,
                              platform_get_resource(pdev, IORESOURCE_MEM, 0));