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>
This commit is contained in:
parent
69c843b45e
commit
2cffff1281
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue