diff options
author | Bob Moore <robert.moore@intel.com> | 2009-11-11 20:52:45 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-11-24 21:31:11 -0500 |
commit | dc95a270c684e771b25dce0b60559cc80c033f22 (patch) | |
tree | 11c4b75117ab6e2f1b09d483422b7f42572d9c67 /drivers/acpi/acpica/evregion.c | |
parent | 502f7efa6ae7c3f6d93dac417af521af1f56bcc7 (diff) |
ACPICA: Deploy new create integer interface where appropriate
Simplifies creation of simple integer objects.
ACPICA BZ 823.
http://www.acpica.org/bugzilla/show_bug.cgi?id=823
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/evregion.c')
-rw-r--r-- | drivers/acpi/acpica/evregion.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/acpi/acpica/evregion.c b/drivers/acpi/acpica/evregion.c index 582b0af01e99..0bc807c33a56 100644 --- a/drivers/acpi/acpica/evregion.c +++ b/drivers/acpi/acpica/evregion.c | |||
@@ -289,23 +289,20 @@ acpi_ev_execute_reg_method(union acpi_operand_object *region_obj, u32 function) | |||
289 | * connection status 1 for connecting the handler, 0 for disconnecting | 289 | * connection status 1 for connecting the handler, 0 for disconnecting |
290 | * the handler (Passed as a parameter) | 290 | * the handler (Passed as a parameter) |
291 | */ | 291 | */ |
292 | args[0] = acpi_ut_create_internal_object(ACPI_TYPE_INTEGER); | 292 | args[0] = |
293 | acpi_ut_create_integer_object((u64) region_obj->region.space_id); | ||
293 | if (!args[0]) { | 294 | if (!args[0]) { |
294 | status = AE_NO_MEMORY; | 295 | status = AE_NO_MEMORY; |
295 | goto cleanup1; | 296 | goto cleanup1; |
296 | } | 297 | } |
297 | 298 | ||
298 | args[1] = acpi_ut_create_internal_object(ACPI_TYPE_INTEGER); | 299 | args[1] = acpi_ut_create_integer_object((u64) function); |
299 | if (!args[1]) { | 300 | if (!args[1]) { |
300 | status = AE_NO_MEMORY; | 301 | status = AE_NO_MEMORY; |
301 | goto cleanup2; | 302 | goto cleanup2; |
302 | } | 303 | } |
303 | 304 | ||
304 | /* Setup the parameter objects */ | 305 | args[2] = NULL; /* Terminate list */ |
305 | |||
306 | args[0]->integer.value = region_obj->region.space_id; | ||
307 | args[1]->integer.value = function; | ||
308 | args[2] = NULL; | ||
309 | 306 | ||
310 | /* Execute the method, no return value */ | 307 | /* Execute the method, no return value */ |
311 | 308 | ||