diff options
Diffstat (limited to 'drivers/acpi/utilities/utresrc.c')
-rw-r--r-- | drivers/acpi/utilities/utresrc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/utilities/utresrc.c b/drivers/acpi/utilities/utresrc.c index 4c24e6d5400a..1e680794c6df 100644 --- a/drivers/acpi/utilities/utresrc.c +++ b/drivers/acpi/utilities/utresrc.c | |||
@@ -258,7 +258,7 @@ static const u8 acpi_gbl_resource_types[] = { | |||
258 | acpi_status | 258 | acpi_status |
259 | acpi_ut_walk_aml_resources(u8 * aml, | 259 | acpi_ut_walk_aml_resources(u8 * aml, |
260 | acpi_size aml_length, | 260 | acpi_size aml_length, |
261 | acpi_walk_aml_callback user_function, void *context) | 261 | acpi_walk_aml_callback user_function, void **context) |
262 | { | 262 | { |
263 | acpi_status status; | 263 | acpi_status status; |
264 | u8 *end_aml; | 264 | u8 *end_aml; |
@@ -319,7 +319,7 @@ acpi_ut_walk_aml_resources(u8 * aml, | |||
319 | /* Return the pointer to the end_tag if requested */ | 319 | /* Return the pointer to the end_tag if requested */ |
320 | 320 | ||
321 | if (!user_function) { | 321 | if (!user_function) { |
322 | *(void **)context = aml; | 322 | *context = aml; |
323 | } | 323 | } |
324 | 324 | ||
325 | /* Normal exit */ | 325 | /* Normal exit */ |
@@ -610,7 +610,7 @@ acpi_ut_get_resource_end_tag(union acpi_operand_object * obj_desc, | |||
610 | 610 | ||
611 | status = acpi_ut_walk_aml_resources(obj_desc->buffer.pointer, | 611 | status = acpi_ut_walk_aml_resources(obj_desc->buffer.pointer, |
612 | obj_desc->buffer.length, NULL, | 612 | obj_desc->buffer.length, NULL, |
613 | end_tag); | 613 | (void **)end_tag); |
614 | 614 | ||
615 | return_ACPI_STATUS(status); | 615 | return_ACPI_STATUS(status); |
616 | } | 616 | } |