lkml.org 
[lkml]   [2013]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 06/30] usb: phy: nop: use new PHY API to register PHY
    On Mon, Jan 28, 2013 at 01:30:07PM +0200, Roger Quadros wrote:
    > 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>

    Acked-by: Felipe Balbi <balbi@ti.com>

    > ---
    > 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 3060ed0..ac027a1 100644
    > --- a/drivers/usb/otg/nop-usb-xceiv.c
    > +++ b/drivers/usb/otg/nop-usb-xceiv.c
    > @@ -197,12 +197,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);
    > --
    > 1.7.4.1
    >

    --
    balbi
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2013-02-05 11:42    [W:2.156 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site