Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331699
b: refs/heads/master
c: 28f538b
h: refs/heads/master
i:
  331697: ab6303a
  331695: cbd8a2b
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Sep 21, 2012
1 parent adc0220 commit 7436726
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a950c135e5b2be6ef7518d54d98a7901db1b377a
refs/heads/master: 28f538b56d321dd5e027267f8240f06ce045e0aa
14 changes: 14 additions & 0 deletions trunk/drivers/acpi/acpica/dswload.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,20 @@ acpi_ds_load1_begin_op(struct acpi_walk_state * walk_state,
walk_state->scope_info->common.value = ACPI_TYPE_ANY;
break;

case ACPI_TYPE_METHOD:

/*
* Allow scope change to root during execution of module-level
* code. Root is typed METHOD during this time.
*/
if ((node == acpi_gbl_root_node) &&
(walk_state->
parse_flags & ACPI_PARSE_MODULE_LEVEL)) {
break;
}

/*lint -fallthrough */

default:

/* All other types are an error */
Expand Down
14 changes: 14 additions & 0 deletions trunk/drivers/acpi/acpica/dswload2.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,20 @@ acpi_ds_load2_begin_op(struct acpi_walk_state *walk_state,
walk_state->scope_info->common.value = ACPI_TYPE_ANY;
break;

case ACPI_TYPE_METHOD:

/*
* Allow scope change to root during execution of module-level
* code. Root is typed METHOD during this time.
*/
if ((node == acpi_gbl_root_node) &&
(walk_state->
parse_flags & ACPI_PARSE_MODULE_LEVEL)) {
break;
}

/*lint -fallthrough */

default:

/* All other types are an error */
Expand Down

0 comments on commit 7436726

Please sign in to comment.