usb: phy: r-car gen2: use usb_add_phy_dev
authorValentine Barshak <valentine.barshak@cogentembedded.com>
Mon, 9 Dec 2013 19:40:33 +0000 (23:40 +0400)
committerFelipe Balbi <balbi@ti.com>
Mon, 9 Dec 2013 20:59:53 +0000 (14:59 -0600)
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>
drivers/usb/phy/phy-rcar-gen2-usb.c

index a99a6953f11cc1988272b9ae2d4e917073eb458f..9f57091bc9e0256f8e32fd5fc216ce53ba8d71e4 100644 (file)
@@ -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;