Commit b2df430b authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

drivers: net: phy: xgene: Remove redundant dev_err call in xgene_mdio_probe()

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 <weiyj.lk@gmail.com>
Acked-By: default avatarIyappan Subramanian <isubramanian@apm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6b65bc29
...@@ -345,10 +345,8 @@ static int xgene_mdio_probe(struct platform_device *pdev) ...@@ -345,10 +345,8 @@ static int xgene_mdio_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
csr_base = devm_ioremap_resource(dev, res); csr_base = devm_ioremap_resource(dev, res);
if (IS_ERR(csr_base)) { if (IS_ERR(csr_base))
dev_err(dev, "Unable to retrieve mac CSR region\n");
return PTR_ERR(csr_base); return PTR_ERR(csr_base);
}
pdata->mac_csr_addr = csr_base; pdata->mac_csr_addr = csr_base;
pdata->mdio_csr_addr = csr_base + BLOCK_XG_MDIO_CSR_OFFSET; pdata->mdio_csr_addr = csr_base + BLOCK_XG_MDIO_CSR_OFFSET;
pdata->diag_csr_addr = csr_base + BLOCK_DIAG_CSR_OFFSET; pdata->diag_csr_addr = csr_base + BLOCK_DIAG_CSR_OFFSET;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment