aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2011-03-18 12:44:17 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-23 13:16:06 -0700
commit97ac01d8f1b8d1c9e5af32c2813ba771835961f9 (patch)
treec3aafd90f3ca9afd4bd67daadf515879c11ff54d /drivers/usb
parentadaa3c6342b249548ea830fe8e02aa5b45be8688 (diff)
downloadkernel_samsung_smdk4412-97ac01d8f1b8d1c9e5af32c2813ba771835961f9.zip
kernel_samsung_smdk4412-97ac01d8f1b8d1c9e5af32c2813ba771835961f9.tar.gz
kernel_samsung_smdk4412-97ac01d8f1b8d1c9e5af32c2813ba771835961f9.tar.bz2
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>
Diffstat (limited to 'drivers/usb')
-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 a65ddd5..e4fad5e 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)
/* we have to throw away the rest */
do {
unbusy_queued_urb(urb, portdata);
- //extremely dirty
- atomic_dec(&port->serial->interface->dev.power.usage_count);
+ usb_autopm_put_interface_no_suspend(port->serial->interface);
} while ((urb = usb_get_from_anchor(&portdata->delayed)));
break;
}