diff options
-rw-r--r-- | drivers/base/power/runtime.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c index 6bb3aafa85ed..18ef87e525fa 100644 --- a/drivers/base/power/runtime.c +++ b/drivers/base/power/runtime.c | |||
@@ -29,13 +29,10 @@ static int rpm_suspend(struct device *dev, int rpmflags); | |||
29 | void update_pm_runtime_accounting(struct device *dev) | 29 | void update_pm_runtime_accounting(struct device *dev) |
30 | { | 30 | { |
31 | unsigned long now = jiffies; | 31 | unsigned long now = jiffies; |
32 | int delta; | 32 | unsigned long delta; |
33 | 33 | ||
34 | delta = now - dev->power.accounting_timestamp; | 34 | delta = now - dev->power.accounting_timestamp; |
35 | 35 | ||
36 | if (delta < 0) | ||
37 | delta = 0; | ||
38 | |||
39 | dev->power.accounting_timestamp = now; | 36 | dev->power.accounting_timestamp = now; |
40 | 37 | ||
41 | if (dev->power.disable_depth > 0) | 38 | if (dev->power.disable_depth > 0) |