diff options
author | Ivan T. Ivanov <iivanov@mm-sol.com> | 2014-04-28 13:34:23 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-04-30 16:29:58 (GMT) |
commit | e695abb3c8b1b758843a1db2a73c98b3d14c173a (patch) | |
tree | 0bc406d130acc06123826a7f100a2172be55cfc1 /drivers | |
parent | 01799b622217ffebdc95e8e0aedbd4cff6a35a50 (diff) | |
download | linux-e695abb3c8b1b758843a1db2a73c98b3d14c173a.tar.xz |
usb: phy: msm: Use usb_add_phy_dev() to register device
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/phy/phy-msm-usb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c index 8e7956e..9dc7918 100644 --- a/drivers/usb/phy/phy-msm-usb.c +++ b/drivers/usb/phy/phy-msm-usb.c @@ -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; @@ -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; |