Commit 90f4232f authored by Roger Quadros's avatar Roger Quadros Committed by Felipe Balbi

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: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent ad63ebfc
...@@ -198,12 +198,13 @@ static int nop_usb_xceiv_probe(struct platform_device *pdev) ...@@ -198,12 +198,13 @@ static int nop_usb_xceiv_probe(struct platform_device *pdev)
nop->phy.init = nop_init; nop->phy.init = nop_init;
nop->phy.shutdown = nop_shutdown; nop->phy.shutdown = nop_shutdown;
nop->phy.state = OTG_STATE_UNDEFINED; nop->phy.state = OTG_STATE_UNDEFINED;
nop->phy.type = type;
nop->phy.otg->phy = &nop->phy; nop->phy.otg->phy = &nop->phy;
nop->phy.otg->set_host = nop_set_host; nop->phy.otg->set_host = nop_set_host;
nop->phy.otg->set_peripheral = nop_set_peripheral; nop->phy.otg->set_peripheral = nop_set_peripheral;
err = usb_add_phy(&nop->phy, type); err = usb_add_phy_dev(&nop->phy);
if (err) { if (err) {
dev_err(&pdev->dev, "can't register transceiver, err: %d\n", dev_err(&pdev->dev, "can't register transceiver, err: %d\n",
err); err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment