summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorLen Brown <lenb@toshiba.site>2006-03-31 02:16:19 -0500
committerLen Brown <len.brown@intel.com>2006-03-31 02:16:19 -0500
commit46358614ed5b031797522f1020e989c959a8d8a6 (patch)
tree1f342b7a2a2424d3a71750c1d72ed9337a1b59cf /drivers/acpi
parenta0f067802576d4eb4c65d40b8ee7d6ea3c81dd61 (diff)
Revert "[PATCH] ACPI: fix vendor resource length computation"
fixed in a different way by a subsequent ACPICA patch This reverts 35b73ceb9a7d10c81bd9e79e8485f7079ef2b40e commit.
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/resources/rscalc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/resources/rscalc.c b/drivers/acpi/resources/rscalc.c
index 4038dbfa63a..7d6481d9fbe 100644
--- a/drivers/acpi/resources/rscalc.c
+++ b/drivers/acpi/resources/rscalc.c
@@ -391,7 +391,8 @@ acpi_rs_get_list_length(u8 * aml_buffer,
* Ensure a 32-bit boundary for the structure
*/
extra_struct_bytes =
- ACPI_ROUND_UP_to_32_bITS(resource_length);
+ ACPI_ROUND_UP_to_32_bITS(resource_length) -
+ resource_length;
break;
case ACPI_RESOURCE_NAME_END_TAG:
@@ -407,7 +408,8 @@ acpi_rs_get_list_length(u8 * aml_buffer,
* Add vendor data and ensure a 32-bit boundary for the structure
*/
extra_struct_bytes =
- ACPI_ROUND_UP_to_32_bITS(resource_length);
+ ACPI_ROUND_UP_to_32_bITS(resource_length) -
+ resource_length;
break;
case ACPI_RESOURCE_NAME_ADDRESS32: