Commit 6be83681 authored by Guobin Huang's avatar Guobin Huang Committed by David S. Miller

net: mdio: Remove redundant dev_err call in mdio_mux_iproc_probe()

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarGuobin Huang <huangguobin4@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 37f368d8
...@@ -197,10 +197,8 @@ static int mdio_mux_iproc_probe(struct platform_device *pdev) ...@@ -197,10 +197,8 @@ static int mdio_mux_iproc_probe(struct platform_device *pdev)
res->end = res->start + MDIO_REG_ADDR_SPACE_SIZE - 1; res->end = res->start + MDIO_REG_ADDR_SPACE_SIZE - 1;
} }
md->base = devm_ioremap_resource(&pdev->dev, res); md->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(md->base)) { if (IS_ERR(md->base))
dev_err(&pdev->dev, "failed to ioremap register\n");
return PTR_ERR(md->base); return PTR_ERR(md->base);
}
md->mii_bus = devm_mdiobus_alloc(&pdev->dev); md->mii_bus = devm_mdiobus_alloc(&pdev->dev);
if (!md->mii_bus) { if (!md->mii_bus) {
......
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