Lines Matching refs:ret
32 int ret; in ohci_setup_phy() local
34 ret = generic_phy_get_by_index(dev, index, &priv->phy); in ohci_setup_phy()
35 if (ret) { in ohci_setup_phy()
36 if (ret != -ENOENT) { in ohci_setup_phy()
38 return ret; in ohci_setup_phy()
41 ret = generic_phy_init(&priv->phy); in ohci_setup_phy()
42 if (ret) { in ohci_setup_phy()
44 return ret; in ohci_setup_phy()
47 ret = generic_phy_power_on(&priv->phy); in ohci_setup_phy()
48 if (ret) { in ohci_setup_phy()
60 int ret = 0; in ohci_shutdown_phy() local
63 ret = generic_phy_power_off(&priv->phy); in ohci_shutdown_phy()
64 if (ret) { in ohci_shutdown_phy()
66 return ret; in ohci_shutdown_phy()
69 ret = generic_phy_exit(&priv->phy); in ohci_shutdown_phy()
70 if (ret) { in ohci_shutdown_phy()
72 return ret; in ohci_shutdown_phy()
83 int i, err, ret, clock_nb, reset_nb; in ohci_usb_probe() local
151 ret = ohci_shutdown_phy(dev); in ohci_usb_probe()
152 if (ret) in ohci_usb_probe()
156 ret = reset_release_all(priv->resets, priv->reset_count); in ohci_usb_probe()
157 if (ret) in ohci_usb_probe()
160 ret = clk_release_all(priv->clocks, priv->clock_count); in ohci_usb_probe()
161 if (ret) in ohci_usb_probe()
170 int ret; in ohci_usb_remove() local
172 ret = ohci_deregister(dev); in ohci_usb_remove()
173 if (ret) in ohci_usb_remove()
174 return ret; in ohci_usb_remove()
176 ret = ohci_shutdown_phy(dev); in ohci_usb_remove()
177 if (ret) in ohci_usb_remove()
178 return ret; in ohci_usb_remove()
180 ret = reset_release_all(priv->resets, priv->reset_count); in ohci_usb_remove()
181 if (ret) in ohci_usb_remove()
182 return ret; in ohci_usb_remove()