From patchwork Tue Oct 27 12:01:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dasgupta, Romit" X-Patchwork-Id: 56080 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9RC2kwW010429 for ; Tue, 27 Oct 2009 12:02:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753959AbZJ0MBy (ORCPT ); Tue, 27 Oct 2009 08:01:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753808AbZJ0MBy (ORCPT ); Tue, 27 Oct 2009 08:01:54 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:55786 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753774AbZJ0MBw convert rfc822-to-8bit (ORCPT ); Tue, 27 Oct 2009 08:01:52 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id n9RC1SNe010479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Oct 2009 07:01:30 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id n9RC1Qnx004294; Tue, 27 Oct 2009 17:31:27 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Tue, 27 Oct 2009 17:31:25 +0530 From: "Dasgupta, Romit" To: "Hilman, Kevin" , "rjw@sisk.pl" CC: "linux-pm@lists.linux-foundation.org" , "linux-omap@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Tue, 27 Oct 2009 17:31:30 +0530 Subject: [PATCH] PM: Fixes warning on suspend errors Thread-Topic: [PATCH] PM: Fixes warning on suspend errors Thread-Index: AcpW/TguHlLgiK/OSwWE73VOdePpNg== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index e0dc407..6b9e991 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -365,7 +365,6 @@ void dpm_resume_noirq(pm_message_t state) struct device *dev; mutex_lock(&dpm_list_mtx); - transition_started = false; list_for_each_entry(dev, &dpm_list, power.entry) if (dev->power.status > DPM_OFF) { int error; @@ -529,6 +528,7 @@ static void dpm_complete(pm_message_t state) put_device(dev); } list_splice(&list, &dpm_list); + transition_started = false; mutex_unlock(&dpm_list_mtx); }