diff options
Diffstat (limited to 'drivers/net/usb/usbnet.c')
-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 { |