From: Valentine Barshak Date: Mon, 9 Dec 2013 19:40:33 +0000 (+0400) Subject: usb: phy: r-car gen2: use usb_add_phy_dev X-Git-Tag: upstream/snapshot3+hdmi~3626^2~90^2~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3e5d2985ef720cbbdc63546a5c545ac4450d96e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/phy/phy-rcar-gen2-usb.c b/drivers/usb/phy/phy-rcar-gen2-usb.c index a99a695..9f57091 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) priv->phy.shutdown = rcar_gen2_usb_phy_shutdown; priv->phy.set_suspend = rcar_gen2_usb_phy_set_suspend; - retval = usb_add_phy(&priv->phy, USB_PHY_TYPE_USB2); + retval = usb_add_phy_dev(&priv->phy); if (retval < 0) { dev_err(dev, "Failed to add USB phy\n"); return retval;