net: mvpp2: Remove redundant dev_err call in mvpp2_port_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 20 Jul 2014 13:57:17 +0000 (21:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2014 05:26:58 +0000 (22:26 -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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c

index f4de2a9316ff8c83cfeb8486deceaa58fb8e4ddb..f8e1953aeb597526ca383c9e6019b7e020b52dd8 100644 (file)
@@ -6062,7 +6062,6 @@ static int mvpp2_port_probe(struct platform_device *pdev,
        port->base = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(port->base)) {
                err = PTR_ERR(port->base);
-               dev_err(&pdev->dev, "cannot obtain port base address\n");
                goto err_free_irq;
        }