From: Wei Yongjun <yongjun_...@trendmicro.com.cn>

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_...@trendmicro.com.cn>
---
 drivers/usb/phy/phy-omap-control.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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) {

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to