Skip to content

Commit

Permalink
mmc: sdhci-xenon: Remove redundant dev_err call in get_dt_pad_ctrl_da…
Browse files Browse the repository at this point in the history
…ta()

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>
  • Loading branch information
Wei Yongjun authored and Ulf Hansson committed Apr 25, 2017
1 parent dfc28b1 commit e6e267b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mmc/host/sdhci-xenon-phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e6e267b

Please sign in to comment.