]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
usb: phy: nop: use new PHY API to register PHY
authorRoger Quadros <rogerq@ti.com>
Tue, 12 Mar 2013 11:24:24 +0000 (13:24 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:15:02 +0000 (11:15 +0200)
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>
drivers/usb/otg/nop-usb-xceiv.c

index 6efc9b793333e117b108c80496d7ea9e6ac2cc09..fe7a46001854b152a92b8e0eb1b4e9584d7a9cd8 100644 (file)
@@ -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);