From patchwork Mon May 11 01:24:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, Yakui" X-Patchwork-Id: 22831 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 n4B1NECo014043 for ; Mon, 11 May 2009 01:23:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756342AbZEKBW3 (ORCPT ); Sun, 10 May 2009 21:22:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756498AbZEKBW3 (ORCPT ); Sun, 10 May 2009 21:22:29 -0400 Received: from mga14.intel.com ([143.182.124.37]:2504 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756342AbZEKBW2 (ORCPT ); Sun, 10 May 2009 21:22:28 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 10 May 2009 18:22:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.40,325,1239001200"; d="scan'208";a="141284832" Received: from yakui_zhao.sh.intel.com (HELO [10.239.36.138]) ([10.239.36.138]) by azsmga001.ch.intel.com with ESMTP; 10 May 2009 18:22:28 -0700 Subject: [PATCH]: ACPI: Cleanup in ACPI device power state transition From: yakui_zhao To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org Organization: Intel Open Source Technology Center Date: Mon, 11 May 2009 09:24:36 +0800 Message-Id: <1242005076.3773.133.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 (2.22.1-2.fc9) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Zhao Yakui Cleanup in the function of acpi device power state transition. When the ACPI device can't be transited to the target D-state, OS should report the warning message of "Failure in transiting device [%s] to D%d state" instead of "Transiting device[%s] to D%d state". Signed-off-by: Zhao Yakui --- drivers/acpi/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/drivers/acpi/bus.c =================================================================== --- linux-2.6.orig/drivers/acpi/bus.c 2009-05-11 08:57:49.000000000 +0800 +++ linux-2.6/drivers/acpi/bus.c 2009-05-11 09:16:27.000000000 +0800 @@ -321,7 +321,7 @@ end: if (result) printk(KERN_WARNING PREFIX - "Transitioning device [%s] to D%d\n", + "Failure in transiting device [%s] to D%d\n", device->pnp.bus_id, state); else { device->power.state = state;