Merge tag 'v3.17-rc4' into next
[firefly-linux-kernel-4.4.55.git] / drivers / usb / phy / phy-msm-usb.c
index 45b95946500f56f3ce110e49e9e45978580e1108..7bb48af9e02776f8dac102ae49adbfc492cfe096 100644 (file)
@@ -1604,8 +1604,8 @@ static int msm_otg_probe(struct platform_device *pdev)
         */
        if (motg->phy_number) {
                phy_select = devm_ioremap_nocache(&pdev->dev, USB2_PHY_SEL, 4);
-               if (IS_ERR(phy_select))
-                       return PTR_ERR(phy_select);
+               if (!phy_select)
+                       return -ENOMEM;
                /* Enable second PHY with the OTG port */
                writel(0x1, phy_select);
        }