diff options
Diffstat (limited to 'drivers/usb/chipidea/ci_hdrc_imx.c')
-rw-r--r-- | drivers/usb/chipidea/ci_hdrc_imx.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 37fdae5106ae..14362c00db3f 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c | |||
@@ -98,7 +98,6 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) | |||
98 | }; | 98 | }; |
99 | struct resource *res; | 99 | struct resource *res; |
100 | int ret; | 100 | int ret; |
101 | struct usb_phy *phy; | ||
102 | 101 | ||
103 | if (of_find_property(pdev->dev.of_node, "fsl,usbmisc", NULL) | 102 | if (of_find_property(pdev->dev.of_node, "fsl,usbmisc", NULL) |
104 | && !usbmisc_ops) | 103 | && !usbmisc_ops) |
@@ -130,14 +129,14 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) | |||
130 | return ret; | 129 | return ret; |
131 | } | 130 | } |
132 | 131 | ||
133 | phy = devm_usb_get_phy_by_phandle(&pdev->dev, "fsl,usbphy", 0); | 132 | data->phy = devm_usb_get_phy_by_phandle(&pdev->dev, "fsl,usbphy", 0); |
134 | if (!IS_ERR(phy)) { | 133 | if (!IS_ERR(data->phy)) { |
135 | ret = usb_phy_init(phy); | 134 | ret = usb_phy_init(data->phy); |
136 | if (ret) { | 135 | if (ret) { |
137 | dev_err(&pdev->dev, "unable to init phy: %d\n", ret); | 136 | dev_err(&pdev->dev, "unable to init phy: %d\n", ret); |
138 | goto err_clk; | 137 | goto err_clk; |
139 | } | 138 | } |
140 | } else if (PTR_ERR(phy) == -EPROBE_DEFER) { | 139 | } else if (PTR_ERR(data->phy) == -EPROBE_DEFER) { |
141 | ret = -EPROBE_DEFER; | 140 | ret = -EPROBE_DEFER; |
142 | goto err_clk; | 141 | goto err_clk; |
143 | } | 142 | } |