diff options
-rw-r--r-- | drivers/usb/phy/phy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c index b4066a001ba0..353c686498d4 100644 --- a/drivers/usb/phy/phy.c +++ b/drivers/usb/phy/phy.c | |||
@@ -34,7 +34,7 @@ static struct usb_phy *__usb_find_phy(struct list_head *list, | |||
34 | return phy; | 34 | return phy; |
35 | } | 35 | } |
36 | 36 | ||
37 | return ERR_PTR(-ENODEV); | 37 | return ERR_PTR(-EPROBE_DEFER); |
38 | } | 38 | } |
39 | 39 | ||
40 | static struct usb_phy *__usb_find_phy_dev(struct device *dev, | 40 | static struct usb_phy *__usb_find_phy_dev(struct device *dev, |
@@ -66,7 +66,7 @@ static struct usb_phy *__of_usb_find_phy(struct device_node *node) | |||
66 | return phy; | 66 | return phy; |
67 | } | 67 | } |
68 | 68 | ||
69 | return ERR_PTR(-ENODEV); | 69 | return ERR_PTR(-EPROBE_DEFER); |
70 | } | 70 | } |
71 | 71 | ||
72 | static void devm_usb_phy_release(struct device *dev, void *res) | 72 | static void devm_usb_phy_release(struct device *dev, void *res) |
@@ -192,7 +192,7 @@ struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev, | |||
192 | phy = __of_usb_find_phy(node); | 192 | phy = __of_usb_find_phy(node); |
193 | if (IS_ERR(phy) || !try_module_get(phy->dev->driver->owner)) { | 193 | if (IS_ERR(phy) || !try_module_get(phy->dev->driver->owner)) { |
194 | if (!IS_ERR(phy)) | 194 | if (!IS_ERR(phy)) |
195 | phy = ERR_PTR(-EPROBE_DEFER); | 195 | phy = ERR_PTR(-ENODEV); |
196 | 196 | ||
197 | devres_free(ptr); | 197 | devres_free(ptr); |
198 | goto err1; | 198 | goto err1; |