Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Valentine Barshak and committed by
Felipe Balbi
c3e5d298 c6d76414

+1 -1
+1 -1
drivers/usb/phy/phy-rcar-gen2-usb.c
··· 213 213 priv->phy.shutdown = rcar_gen2_usb_phy_shutdown; 214 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 217 if (retval < 0) { 218 218 dev_err(dev, "Failed to add USB phy\n"); 219 219 return retval;