diff options
-rw-r--r-- | drivers/base/power/runtime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c index 6e8577d1f750..637706951885 100644 --- a/drivers/base/power/runtime.c +++ b/drivers/base/power/runtime.c | |||
@@ -625,6 +625,8 @@ int pm_schedule_suspend(struct device *dev, unsigned int delay) | |||
625 | goto out; | 625 | goto out; |
626 | 626 | ||
627 | dev->power.timer_expires = jiffies + msecs_to_jiffies(delay); | 627 | dev->power.timer_expires = jiffies + msecs_to_jiffies(delay); |
628 | if (!dev->power.timer_expires) | ||
629 | dev->power.timer_expires = 1; | ||
628 | mod_timer(&dev->power.suspend_timer, dev->power.timer_expires); | 630 | mod_timer(&dev->power.suspend_timer, dev->power.timer_expires); |
629 | 631 | ||
630 | out: | 632 | out: |