Skip to content

Commit

Permalink
PM / Runtime: Consistent utilization of deferred_resume
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ShuoX Liu authored and Rafael J. Wysocki committed Jul 8, 2011
1 parent 69c843b commit 2cffff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/power/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cffff1

Please sign in to comment.