diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-10-07 17:16:55 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-10-07 17:16:55 -0400 |
commit | d727b60659a1173eb4142a5fc521ce67c28b34e1 (patch) | |
tree | 793d0fc86ecf98331024db5c86bc271cc72aa2d2 /drivers/net/usb | |
parent | 3ee72ca99288f1de95ec9c570e43f531c8799f06 (diff) | |
parent | 2a5306cc5f383b0e7414c75e458111afd4a563a4 (diff) |
Merge branch 'pm-runtime' into pm-for-linus
* pm-runtime:
PM / Tracing: build rpm-traces.c only if CONFIG_PM_RUNTIME is set
PM / Runtime: Replace dev_dbg() with trace_rpm_*()
PM / Runtime: Introduce trace points for tracing rpm_* functions
PM / Runtime: Don't run callbacks under lock for power.irq_safe set
USB: Add wakeup info to debugging messages
PM / Runtime: pm_runtime_idle() can be called in atomic context
PM / Runtime: Add macro to test for runtime PM events
PM / Runtime: Add might_sleep() to runtime PM functions
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/usbnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index ce395fe5de26..f1c435ba5284 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c | |||
@@ -1470,7 +1470,7 @@ int usbnet_suspend (struct usb_interface *intf, pm_message_t message) | |||
1470 | if (!dev->suspend_count++) { | 1470 | if (!dev->suspend_count++) { |
1471 | spin_lock_irq(&dev->txq.lock); | 1471 | spin_lock_irq(&dev->txq.lock); |
1472 | /* don't autosuspend while transmitting */ | 1472 | /* don't autosuspend while transmitting */ |
1473 | if (dev->txq.qlen && (message.event & PM_EVENT_AUTO)) { | 1473 | if (dev->txq.qlen && PMSG_IS_AUTO(message)) { |
1474 | spin_unlock_irq(&dev->txq.lock); | 1474 | spin_unlock_irq(&dev->txq.lock); |
1475 | return -EBUSY; | 1475 | return -EBUSY; |
1476 | } else { | 1476 | } else { |