aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorShuoX Liu <shuox.liu@intel.com>2011-07-08 14:53:55 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2011-07-08 14:53:55 -0400
commit2cffff1281a74714c9e035322077ec52ffb1f838 (patch)
treea0321ea7466987e6e860fc4e05633ac64b8120c9 /drivers/base
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/base')
-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 be7b982d252e..8dc247c974af 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)
389 retval = rpm_callback(callback, dev); 389 retval = rpm_callback(callback, dev);
390 if (retval) { 390 if (retval) {
391 __update_runtime_status(dev, RPM_ACTIVE); 391 __update_runtime_status(dev, RPM_ACTIVE);
392 dev->power.deferred_resume = 0; 392 dev->power.deferred_resume = false;
393 if (retval == -EAGAIN || retval == -EBUSY) 393 if (retval == -EAGAIN || retval == -EBUSY)
394 dev->power.runtime_error = 0; 394 dev->power.runtime_error = 0;
395 else 395 else