net: ethernet: davinci_emac: remove redundant dev_err call in davinci_emac_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 2 Jul 2013 00:57:47 +0000 (08:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2013 08:10:06 +0000 (01:10 -0700)
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 <yongjun_wei@trendmicro.com.cn>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c

index f118d7133128a18005ff4fb96114873bd7f140bf..07b176bcf929706a7f3c3974e49becd346a2dc27 100644 (file)
@@ -1870,7 +1870,6 @@ static int davinci_emac_probe(struct platform_device *pdev)
        priv->emac_base_phys = res->start + pdata->ctrl_reg_offset;
        priv->remap_addr = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(priv->remap_addr)) {
-               dev_err(&pdev->dev, "unable to map IO\n");
                rc = PTR_ERR(priv->remap_addr);
                goto no_pdata;
        }