|
|
@@ -61,9 +61,6 @@ static int am335x_phy_probe(struct platform_device *pdev)
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
|
|
|
- ret = usb_add_phy_dev(&am_phy->usb_phy_gen.phy);
|
|
|
- if (ret)
|
|
|
- return ret;
|
|
|
am_phy->usb_phy_gen.phy.init = am335x_init;
|
|
|
am_phy->usb_phy_gen.phy.shutdown = am335x_shutdown;
|
|
|
|
|
|
@@ -82,7 +79,7 @@ static int am335x_phy_probe(struct platform_device *pdev)
|
|
|
device_set_wakeup_enable(dev, false);
|
|
|
phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false);
|
|
|
|
|
|
- return 0;
|
|
|
+ return usb_add_phy_dev(&am_phy->usb_phy_gen.phy);
|
|
|
}
|
|
|
|
|
|
static int am335x_phy_remove(struct platform_device *pdev)
|