diff options
-rw-r--r-- | drivers/usb/core/driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 7e26fb3c2759..0226e019326a 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c | |||
@@ -1111,7 +1111,7 @@ static int autosuspend_check(struct usb_device *udev, int reschedule) | |||
1111 | if (reschedule) { | 1111 | if (reschedule) { |
1112 | if (!timer_pending(&udev->autosuspend.timer)) { | 1112 | if (!timer_pending(&udev->autosuspend.timer)) { |
1113 | queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend, | 1113 | queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend, |
1114 | round_jiffies_relative(suspend_time - j)); | 1114 | round_jiffies_up_relative(suspend_time - j)); |
1115 | } | 1115 | } |
1116 | return -EAGAIN; | 1116 | return -EAGAIN; |
1117 | } | 1117 | } |
@@ -1553,7 +1553,7 @@ void usb_autopm_put_interface_async(struct usb_interface *intf) | |||
1553 | else if (intf->pm_usage_cnt <= 0 && | 1553 | else if (intf->pm_usage_cnt <= 0 && |
1554 | !timer_pending(&udev->autosuspend.timer)) { | 1554 | !timer_pending(&udev->autosuspend.timer)) { |
1555 | queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend, | 1555 | queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend, |
1556 | round_jiffies_relative( | 1556 | round_jiffies_up_relative( |
1557 | udev->autosuspend_delay)); | 1557 | udev->autosuspend_delay)); |
1558 | } | 1558 | } |
1559 | } | 1559 | } |