* [PATCH] usb_wwan: fix build error in play_delayed.
@ 2011-03-22 4:29 Tao Ma
2011-03-22 6:05 ` Eric Dumazet
0 siblings, 1 reply; 3+ messages in thread
From: Tao Ma @ 2011-03-22 4:29 UTC (permalink / raw)
To: linux-kernel; +Cc: Greg Kroah-Hartman
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1123 bytes --]
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;
}
--
1.6.3.GIT
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] usb_wwan: fix build error in play_delayed.
2011-03-22 4:29 [PATCH] usb_wwan: fix build error in play_delayed Tao Ma
@ 2011-03-22 6:05 ` Eric Dumazet
2011-03-22 16:44 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Eric Dumazet @ 2011-03-22 6:05 UTC (permalink / raw)
To: Tao Ma; +Cc: linux-kernel, Greg Kroah-Hartman
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] usb_wwan: fix build error in play_delayed.
2011-03-22 6:05 ` Eric Dumazet
@ 2011-03-22 16:44 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2011-03-22 16:44 UTC (permalink / raw)
To: Eric Dumazet; +Cc: Tao Ma, linux-kernel
On Tue, Mar 22, 2011 at 07:05:55AM +0100, Eric Dumazet wrote:
> 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
Yes, sorry, been busy with other stuff, this will get fixed soon, I have
enough copies of it in my queue :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-22 16:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-22 4:29 [PATCH] usb_wwan: fix build error in play_delayed Tao Ma
2011-03-22 6:05 ` Eric Dumazet
2011-03-22 16:44 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®