ia64/xen-unstable

changeset 18430:a4cf79209a28

ACPI: Remove a redundant call to acpi_hw_register_read().

Signed-off-by: Wei Gang <gang.wei@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Sep 03 12:45:59 2008 +0100 (2008-09-03)
parents 021189f8cd78
children c759a6cef79f
files xen/drivers/acpi/hwregs.c
line diff
     1.1 --- a/xen/drivers/acpi/hwregs.c	Wed Sep 03 11:02:57 2008 +0100
     1.2 +++ b/xen/drivers/acpi/hwregs.c	Wed Sep 03 12:45:59 2008 +0100
     1.3 @@ -239,11 +239,13 @@ acpi_status acpi_set_register(u32 regist
     1.4  
     1.5  	case ACPI_REGISTER_PM2_CONTROL:
     1.6  
     1.7 +#if 0 /* Redundant read in original Linux code. */
     1.8  		status = acpi_hw_register_read(ACPI_REGISTER_PM2_CONTROL,
     1.9  					       &register_value);
    1.10  		if (ACPI_FAILURE(status)) {
    1.11  			goto unlock_and_exit;
    1.12  		}
    1.13 +#endif
    1.14  
    1.15  		ACPI_DEBUG_PRINT((ACPI_DB_IO,
    1.16  				  "PM2 control: Read %X from %8.8X%8.8X\n",