mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] runtime-pm: consistent utilization of deferred_resume
@ 2011-07-08  4:57 Liu, ShuoX
  2011-07-08 18:59 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Liu, ShuoX @ 2011-07-08  4:57 UTC (permalink / raw)
  To: Brown, Len, pavel, rjw, gregkh; +Cc: linux-pm, linux-kernel

>From 10bb3c851a0a9c9ca4d552743a371e3cfda81075 Mon Sep 17 00:00:00 2001
From: ShuoX Liu <shuox.liu@intel.com>
Date: Thu, 7 Jul 2011 15:59:06 +0800
Subject: [PATCH] runtime-pm: 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>
---
 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 0d4587b..af3d1a5 100644
--- a/drivers/base/power/runtime.c
+++ b/drivers/base/power/runtime.c
@@ -388,7 +388,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
-- 
1.7.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-08 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-08  4:57 [PATCH] runtime-pm: consistent utilization of deferred_resume Liu, ShuoX
2011-07-08 18:59 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®