summaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/cdns3')
-rw-r--r--drivers/usb/cdns3/core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c
index 300df58a190b..06f1e105be4e 100644
--- a/drivers/usb/cdns3/core.c
+++ b/drivers/usb/cdns3/core.c
@@ -462,10 +462,8 @@ static int cdns3_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dev");
regs = devm_ioremap_resource(dev, res);
- if (IS_ERR(regs)) {
- dev_err(dev, "couldn't iomap dev resource\n");
+ if (IS_ERR(regs))
return PTR_ERR(regs);
- }
cdns->dev_regs = regs;
cdns->otg_irq = platform_get_irq_byname(pdev, "otg");