aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy
diff options
context:
space:
mode:
authorValentine Barshak <valentine.barshak@cogentembedded.com>2013-12-09 14:40:33 -0500
committerFelipe Balbi <balbi@ti.com>2013-12-09 15:59:53 -0500
commitc3e5d2985ef720cbbdc63546a5c545ac4450d96e (patch)
tree4e222c444461fc50b8b57acaeadf4b5633332acc /drivers/usb/phy
parentc6d7641470fed467777a886c64329fff8f5abf0b (diff)
usb: phy: r-car gen2: use usb_add_phy_dev
Use usb_add_phy_dev instead of usb_add_phy, so that devices can be bound to the phy. This is needed to set up USB phy for some internal PCI USB host controllers on R-Car Gen2. Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r--drivers/usb/phy/phy-rcar-gen2-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-rcar-gen2-usb.c b/drivers/usb/phy/phy-rcar-gen2-usb.c
index a99a6953f11c..9f57091bc9e0 100644
--- a/drivers/usb/phy/phy-rcar-gen2-usb.c
+++ b/drivers/usb/phy/phy-rcar-gen2-usb.c
@@ -213,7 +213,7 @@ static int rcar_gen2_usb_phy_probe(struct platform_device *pdev)
213 priv->phy.shutdown = rcar_gen2_usb_phy_shutdown; 213 priv->phy.shutdown = rcar_gen2_usb_phy_shutdown;
214 priv->phy.set_suspend = rcar_gen2_usb_phy_set_suspend; 214 priv->phy.set_suspend = rcar_gen2_usb_phy_set_suspend;
215 215
216 retval = usb_add_phy(&priv->phy, USB_PHY_TYPE_USB2); 216 retval = usb_add_phy_dev(&priv->phy);
217 if (retval < 0) { 217 if (retval < 0) {
218 dev_err(dev, "Failed to add USB phy\n"); 218 dev_err(dev, "Failed to add USB phy\n");
219 return retval; 219 return retval;