]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: ohci-da8xx: remove redundant dev_err call in usb_hcd_da8xx_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 29 Oct 2016 16:25:32 +0000 (16:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Oct 2016 16:51:56 +0000 (12:51 -0400)
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 <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-da8xx.c

index 30c48789389e98a8e78c3be0e7d2d09cbeae6c23..bd6cf3c9ec605acb8ef09034e63d68ebac4f50ab 100644 (file)
@@ -261,7 +261,6 @@ static int ohci_da8xx_probe(struct platform_device *pdev)
        hcd->regs = devm_ioremap_resource(&pdev->dev, mem);
        if (IS_ERR(hcd->regs)) {
                error = PTR_ERR(hcd->regs);
-               dev_err(&pdev->dev, "failed to map ohci.\n");
                goto err;
        }
        hcd->rsrc_start = mem->start;