Skip to contentSkip to conversation

mmc: sdhci-xenon: Remove redundant dev_err call in get_dt_pad_ctrl_data()

PATCH Applied Wei Yongjun 2 participants 2 messages Apr 25, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: sdhci-xenon: Remove redundant dev_err call in get_dt_pad_ctrl_data()

From: Wei Yongjun <[email protected]>

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---
 drivers/mmc/host/sdhci-xenon-phy.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/mmc/host/sdhci-xenon-phy.c +1 -4
index 4bdbcd3..d43841e 100644
@@ -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) {
Applied
#1 lore raw
Quoted 7 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

Thanks, applied for next!

Kind regards
Uffe

Quoted 24 lines
---
 drivers/mmc/host/sdhci-xenon-phy.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/mmc/host/sdhci-xenon-phy.c +1 -4
index 4bdbcd3..d43841e 100644
@@ -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) {