summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorShuoX Liu <shuox.liu@intel.com>2011-07-08 20:53:55 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2011-07-08 20:53:55 +0200
commit2cffff1281a74714c9e035322077ec52ffb1f838 (patch)
treea0321ea7466987e6e860fc4e05633ac64b8120c9 /drivers
parent69c843b45eb3b8f267019e6a05860c9c48337419 (diff)
PM / Runtime: Consistent utilization of deferred_resume
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/power/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c
index be7b982d252..8dc247c974a 100644
--- 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