return -EINVAL;
                }
 
-               phy = devm_of_phy_get(dev, child, NULL);
+               phy = devm_of_phy_optional_get(dev, child, NULL);
                exynos_ehci->phy[phy_number] = phy;
                if (IS_ERR(phy)) {
-                       ret = PTR_ERR(phy);
-                       if (ret == -EPROBE_DEFER) {
-                               of_node_put(child);
-                               return ret;
-                       } else if (ret != -ENOSYS && ret != -ENODEV) {
-                               dev_err(dev,
-                                       "Error retrieving usb2 phy: %d\n", ret);
-                               of_node_put(child);
-                               return ret;
-                       }
+                       of_node_put(child);
+                       return PTR_ERR(phy);
                }
        }
 
        int ret = 0;
 
        for (i = 0; ret == 0 && i < PHY_NUMBER; i++)
-               if (!IS_ERR(exynos_ehci->phy[i]))
-                       ret = phy_power_on(exynos_ehci->phy[i]);
+               ret = phy_power_on(exynos_ehci->phy[i]);
        if (ret)
                for (i--; i >= 0; i--)
-                       if (!IS_ERR(exynos_ehci->phy[i]))
-                               phy_power_off(exynos_ehci->phy[i]);
+                       phy_power_off(exynos_ehci->phy[i]);
 
        return ret;
 }
        int i;
 
        for (i = 0; i < PHY_NUMBER; i++)
-               if (!IS_ERR(exynos_ehci->phy[i]))
-                       phy_power_off(exynos_ehci->phy[i]);
+               phy_power_off(exynos_ehci->phy[i]);
 }
 
 static void exynos_setup_vbus_gpio(struct device *dev)