From: ShuoX Liu Date: Fri, 8 Jul 2011 18:53:55 +0000 (+0200) Subject: PM / Runtime: Consistent utilization of deferred_resume X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2cffff1281a74714c9e035322077ec52ffb1f838;p=linux-beck.git 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 --- 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