diff options
Diffstat (limited to 'drivers/usb/phy/phy-am335x.c')
-rw-r--r-- | drivers/usb/phy/phy-am335x.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/phy/phy-am335x.c b/drivers/usb/phy/phy-am335x.c index 27bdb7222527..f5f0568d8533 100644 --- a/drivers/usb/phy/phy-am335x.c +++ b/drivers/usb/phy/phy-am335x.c | |||
@@ -61,9 +61,6 @@ static int am335x_phy_probe(struct platform_device *pdev) | |||
61 | if (ret) | 61 | if (ret) |
62 | return ret; | 62 | return ret; |
63 | 63 | ||
64 | ret = usb_add_phy_dev(&am_phy->usb_phy_gen.phy); | ||
65 | if (ret) | ||
66 | return ret; | ||
67 | am_phy->usb_phy_gen.phy.init = am335x_init; | 64 | am_phy->usb_phy_gen.phy.init = am335x_init; |
68 | am_phy->usb_phy_gen.phy.shutdown = am335x_shutdown; | 65 | am_phy->usb_phy_gen.phy.shutdown = am335x_shutdown; |
69 | 66 | ||
@@ -82,7 +79,7 @@ static int am335x_phy_probe(struct platform_device *pdev) | |||
82 | device_set_wakeup_enable(dev, false); | 79 | device_set_wakeup_enable(dev, false); |
83 | phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); | 80 | phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); |
84 | 81 | ||
85 | return 0; | 82 | return usb_add_phy_dev(&am_phy->usb_phy_gen.phy); |
86 | } | 83 | } |
87 | 84 | ||
88 | static int am335x_phy_remove(struct platform_device *pdev) | 85 | static int am335x_phy_remove(struct platform_device *pdev) |