Message ID | CAPgLHd83P9YG4ryEGcuxr8k9UPhiVz5L+AQzivpD+H_nzZ4pZg@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/usb/phy/phy-omap-control.c b/drivers/usb/phy/phy-omap-control.c index 09c5ace..1321e3f 100644 --- a/drivers/usb/phy/phy-omap-control.c +++ b/drivers/usb/phy/phy-omap-control.c @@ -253,10 +253,8 @@ static int omap_control_usb_probe(struct platform_device *pdev) res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "power"); control_usb->power = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(control_usb->power)) { - dev_err(&pdev->dev, "Couldn't get power register\n"); + if (IS_ERR(control_usb->power)) return PTR_ERR(control_usb->power); - } } if (control_usb->type == OMAP_CTRL_TYPE_PIPE3) {