Skip to content

Commit

Permalink
usb: phy: msm: Use usb_add_phy_dev() to register device
Browse files Browse the repository at this point in the history
There could be more than one USB2.0 PHY's on the platform.
This will allow all of them to be registered successfully.

Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Ivan T. Ivanov authored and Felipe Balbi committed Apr 30, 2014
1 parent 01799b6 commit e695abb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/phy/phy-msm-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,7 @@ static int msm_otg_probe(struct platform_device *pdev)
phy->init = msm_phy_init;
phy->set_power = msm_otg_set_power;
phy->notify_disconnect = msm_phy_notify_disconnect;
phy->type = USB_PHY_TYPE_USB2;

phy->io_ops = &msm_otg_io_ops;

Expand All @@ -1672,7 +1673,7 @@ static int msm_otg_probe(struct platform_device *pdev)

msm_usb_reset(phy);

ret = usb_add_phy(&motg->phy, USB_PHY_TYPE_USB2);
ret = usb_add_phy_dev(&motg->phy);
if (ret) {
dev_err(&pdev->dev, "usb_add_phy failed\n");
goto disable_ldo;
Expand Down

0 comments on commit e695abb

Please sign in to comment.