提交 4911f94d 编写于 作者: W Wei Yongjun 提交者: Greg Kroah-Hartman

usb: ohci-da8xx: remove redundant dev_err call in usb_hcd_da8xx_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: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c0891284
...@@ -261,7 +261,6 @@ static int ohci_da8xx_probe(struct platform_device *pdev) ...@@ -261,7 +261,6 @@ static int ohci_da8xx_probe(struct platform_device *pdev)
hcd->regs = devm_ioremap_resource(&pdev->dev, mem); hcd->regs = devm_ioremap_resource(&pdev->dev, mem);
if (IS_ERR(hcd->regs)) { if (IS_ERR(hcd->regs)) {
error = PTR_ERR(hcd->regs); error = PTR_ERR(hcd->regs);
dev_err(&pdev->dev, "failed to map ohci.\n");
goto err; goto err;
} }
hcd->rsrc_start = mem->start; hcd->rsrc_start = mem->start;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册