[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 2/3] Fix acpi_set_register


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Wei, Gang" <gang.wei@xxxxxxxxx>
  • Date: Wed, 3 Sep 2008 09:52:43 +0800
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Delivery-date: Tue, 02 Sep 2008 18:53:15 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AckNZ8FAkjXVCLOZRyun0P1uSubhuQ==
  • Thread-topic: [PATCH 2/3] Fix acpi_set_register

ACPI: Remove a redundant call to acpi_hw_register_read().

Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>

diff -r fc0b0c64246d xen/drivers/acpi/hwregs.c
--- a/xen/drivers/acpi/hwregs.c Thu Aug 21 16:15:30 2008 +0800
+++ b/xen/drivers/acpi/hwregs.c Mon Aug 25 15:24:32 2008 +0800
@@ -238,12 +238,6 @@ acpi_status acpi_set_register(u32 regist
                break;

        case ACPI_REGISTER_PM2_CONTROL:
-
-               status = acpi_hw_register_read(ACPI_REGISTER_PM2_CONTROL,
-                                              &register_value);
-               if (ACPI_FAILURE(status)) {
-                       goto unlock_and_exit;
-               }

                ACPI_DEBUG_PRINT((ACPI_DB_IO,
                                  "PM2 control: Read %X from %8.8X%8.8X\n",

Attachment: fix-acpi_set_register-0902.patch
Description: fix-acpi_set_register-0902.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.