projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69c843b
)
PM / Runtime: Consistent utilization of deferred_resume
author
ShuoX Liu
<shuox.liu@intel.com>
Fri, 8 Jul 2011 18:53:55 +0000
(20:53 +0200)
committer
Rafael J. Wysocki
<rjw@sisk.pl>
Fri, 8 Jul 2011 18:53:55 +0000
(20:53 +0200)
dev->power.deferred_resume is used as a bool typically, so change
one assignment to false from 0, like other places.
Signed-off-by: ShuoX Liu <shuox.liu@intel.com>
drivers/base/power/runtime.c
patch
|
blob
|
history
diff --git
a/drivers/base/power/runtime.c
b/drivers/base/power/runtime.c
index be7b982d252e7a89f1b3754a82edb4c11bf6b57c..8dc247c974affdc3432d4ec73087f76cd1889ce6 100644
(file)
--- a/
drivers/base/power/runtime.c
+++ b/
drivers/base/power/runtime.c
@@
-389,7
+389,7
@@
static int rpm_suspend(struct device *dev, int rpmflags)
retval = rpm_callback(callback, dev);
if (retval) {
__update_runtime_status(dev, RPM_ACTIVE);
- dev->power.deferred_resume =
0
;
+ dev->power.deferred_resume =
false
;
if (retval == -EAGAIN || retval == -EBUSY)
dev->power.runtime_error = 0;
else