diff options
author | ShuoX Liu <shuox.liu@intel.com> | 2011-07-08 22:53:55 +0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-07-08 22:53:55 +0400 |
commit | 2cffff1281a74714c9e035322077ec52ffb1f838 (patch) | |
tree | a0321ea7466987e6e860fc4e05633ac64b8120c9 /drivers/base | |
parent | 69c843b45eb3b8f267019e6a05860c9c48337419 (diff) | |
download | linux-2cffff1281a74714c9e035322077ec52ffb1f838.tar.xz |
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.c | 2 |
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) 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 |