mmc: sdhci-xenon: Remove redundant dev_err call in get_dt_pad_ctrl_data()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 25 Apr 2017 06:34:46 +0000 (06:34 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 25 Apr 2017 07:55:46 +0000 (09:55 +0200)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-xenon-phy.c

index 4bdbcd3f2645d69f1bc2a50505f1f7688100089a..d43841e9db147e51cba59df767196bf31d749683 100644 (file)
@@ -639,11 +639,8 @@ static int get_dt_pad_ctrl_data(struct sdhci_host *host,
 
        params->pad_ctrl.reg = devm_ioremap_resource(mmc_dev(host->mmc),
                                                     &iomem);
-       if (IS_ERR(params->pad_ctrl.reg)) {
-               dev_err(mmc_dev(host->mmc), "Unable to get SoC PHY PAD ctrl register for %s\n",
-                       np->name);
+       if (IS_ERR(params->pad_ctrl.reg))
                return PTR_ERR(params->pad_ctrl.reg);
-       }
 
        ret = of_property_read_string(np, "marvell,pad-type", &name);
        if (ret) {