lkml.org 
[lkml]   [2011]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] usb_wwan: fix build error in play_delayed.
    From
    Date
    Le mardi 22 mars 2011 à 12:29 +0800, Tao Ma a écrit :
    > From: Tao Ma <boyu.mt@taobao.com>
    >
    > There is a build error in today's linus tree.
    > drivers/usb/serial/usb_wwan.c: In function ‘play_delayed’:
    > drivers/usb/serial/usb_wwan.c:702: error: ‘struct dev_pm_info’ has no member named ‘usage_count’
    > The reason is that usage_count is wrapped with macro CONFIG_PM_RUNTIME
    > now in dev_pm_info.
    >
    > So use the corresponding pm_runtime_get_noresume instead.
    >
    > Cc: Greg Kroah-Hartman <gregkh@suse.de>
    > Signed-off-by: Tao Ma <boyu.mt@taobao.com>
    > ---
    > drivers/usb/serial/usb_wwan.c | 2 +-
    > 1 files changed, 1 insertions(+), 1 deletions(-)
    >
    > diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c
    > index a65ddd5..5858ce4 100644
    > --- a/drivers/usb/serial/usb_wwan.c
    > +++ b/drivers/usb/serial/usb_wwan.c
    > @@ -699,7 +699,7 @@ static void play_delayed(struct usb_serial_port *port)
    > do {
    > unbusy_queued_urb(urb, portdata);
    > //extremely dirty
    > - atomic_dec(&port->serial->interface->dev.power.usage_count);
    > + pm_runtime_get_noresume(&port->serial->interface->dev);
    > } while ((urb = usb_get_from_anchor(&portdata->delayed)));
    > break;
    > }

    Oh well, thats the third time this patch is sent


    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2011-03-22 07:09    [W:0.048 / U:2.460 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site