aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2011-03-18 07:44:17 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-23 16:16:06 -0400
commit97ac01d8f1b8d1c9e5af32c2813ba771835961f9 (patch)
treec3aafd90f3ca9afd4bd67daadf515879c11ff54d
parentadaa3c6342b249548ea830fe8e02aa5b45be8688 (diff)
usb: wwan: fix compilation without CONFIG_PM_RUNTIME
The pm usage counter must be accessed with the proper wrappers to allow compilation under all configurations. Signed-off-by: Oliver Neukum <oneukum@suse.de> Reported-by: Eric Dumazet <eric.dumazet@gmail.com> Reported-by: Tao Ma <boyu.mt@taobao.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/serial/usb_wwan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c
index a65ddd543869..e4fad5e643d7 100644
--- a/drivers/usb/serial/usb_wwan.c
+++ b/drivers/usb/serial/usb_wwan.c
@@ -698,8 +698,7 @@ static void play_delayed(struct usb_serial_port *port)
698 /* we have to throw away the rest */ 698 /* we have to throw away the rest */
699 do { 699 do {
700 unbusy_queued_urb(urb, portdata); 700 unbusy_queued_urb(urb, portdata);
701 //extremely dirty 701 usb_autopm_put_interface_no_suspend(port->serial->interface);
702 atomic_dec(&port->serial->interface->dev.power.usage_count);
703 } while ((urb = usb_get_from_anchor(&portdata->delayed))); 702 } while ((urb = usb_get_from_anchor(&portdata->delayed)));
704 break; 703 break;
705 } 704 }