Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6e267b0 authored by Wei Yongjun's avatar Wei Yongjun Committed by Ulf Hansson
Browse files

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



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

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent dfc28b11
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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) {