diff options
author | Roger Quadros <rogerq@ti.com> | 2013-03-12 13:24:24 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 11:15:02 +0200 |
commit | 90f4232f31f087f86667da03b1a4f3c90a32cb4a (patch) | |
tree | c050bf9c0b85a61a861c11f8a66be610c0bb7cd1 | |
parent | ad63ebfc3565bbdec87ee4e30e4d40d164c1d3b8 (diff) | |
download | linux-stable-90f4232f31f087f86667da03b1a4f3c90a32cb4a.tar.gz linux-stable-90f4232f31f087f86667da03b1a4f3c90a32cb4a.tar.bz2 linux-stable-90f4232f31f087f86667da03b1a4f3c90a32cb4a.zip |
usb: phy: nop: use new PHY API to register PHY
We would need to support multiple PHYs of the same type
so use the new PHY API usb_add_phy_dev() to register the PHY.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/otg/nop-usb-xceiv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/otg/nop-usb-xceiv.c b/drivers/usb/otg/nop-usb-xceiv.c index 6efc9b793333..fe7a46001854 100644 --- a/drivers/usb/otg/nop-usb-xceiv.c +++ b/drivers/usb/otg/nop-usb-xceiv.c @@ -198,12 +198,13 @@ static int nop_usb_xceiv_probe(struct platform_device *pdev) nop->phy.init = nop_init; nop->phy.shutdown = nop_shutdown; nop->phy.state = OTG_STATE_UNDEFINED; + nop->phy.type = type; nop->phy.otg->phy = &nop->phy; nop->phy.otg->set_host = nop_set_host; nop->phy.otg->set_peripheral = nop_set_peripheral; - err = usb_add_phy(&nop->phy, type); + err = usb_add_phy_dev(&nop->phy); if (err) { dev_err(&pdev->dev, "can't register transceiver, err: %d\n", err); |