diff options
Diffstat (limited to 'drivers/acpi/acpica/excreate.c')
-rw-r--r-- | drivers/acpi/acpica/excreate.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/acpi/acpica/excreate.c b/drivers/acpi/acpica/excreate.c index 691d4763102c..66554bc6f9a8 100644 --- a/drivers/acpi/acpica/excreate.c +++ b/drivers/acpi/acpica/excreate.c | |||
@@ -78,7 +78,7 @@ acpi_status acpi_ex_create_alias(struct acpi_walk_state *walk_state) | |||
78 | (target_node->type == ACPI_TYPE_LOCAL_METHOD_ALIAS)) { | 78 | (target_node->type == ACPI_TYPE_LOCAL_METHOD_ALIAS)) { |
79 | /* | 79 | /* |
80 | * Dereference an existing alias so that we don't create a chain | 80 | * Dereference an existing alias so that we don't create a chain |
81 | * of aliases. With this code, we guarantee that an alias is | 81 | * of aliases. With this code, we guarantee that an alias is |
82 | * always exactly one level of indirection away from the | 82 | * always exactly one level of indirection away from the |
83 | * actual aliased name. | 83 | * actual aliased name. |
84 | */ | 84 | */ |
@@ -90,7 +90,7 @@ acpi_status acpi_ex_create_alias(struct acpi_walk_state *walk_state) | |||
90 | /* | 90 | /* |
91 | * For objects that can never change (i.e., the NS node will | 91 | * For objects that can never change (i.e., the NS node will |
92 | * permanently point to the same object), we can simply attach | 92 | * permanently point to the same object), we can simply attach |
93 | * the object to the new NS node. For other objects (such as | 93 | * the object to the new NS node. For other objects (such as |
94 | * Integers, buffers, etc.), we have to point the Alias node | 94 | * Integers, buffers, etc.), we have to point the Alias node |
95 | * to the original Node. | 95 | * to the original Node. |
96 | */ | 96 | */ |
@@ -139,7 +139,7 @@ acpi_status acpi_ex_create_alias(struct acpi_walk_state *walk_state) | |||
139 | 139 | ||
140 | /* | 140 | /* |
141 | * The new alias assumes the type of the target, and it points | 141 | * The new alias assumes the type of the target, and it points |
142 | * to the same object. The reference count of the object has an | 142 | * to the same object. The reference count of the object has an |
143 | * additional reference to prevent deletion out from under either the | 143 | * additional reference to prevent deletion out from under either the |
144 | * target node or the alias Node | 144 | * target node or the alias Node |
145 | */ | 145 | */ |
@@ -243,8 +243,7 @@ acpi_status acpi_ex_create_mutex(struct acpi_walk_state *walk_state) | |||
243 | 243 | ||
244 | /* Init object and attach to NS node */ | 244 | /* Init object and attach to NS node */ |
245 | 245 | ||
246 | obj_desc->mutex.sync_level = | 246 | obj_desc->mutex.sync_level = (u8)walk_state->operands[1]->integer.value; |
247 | (u8) walk_state->operands[1]->integer.value; | ||
248 | obj_desc->mutex.node = | 247 | obj_desc->mutex.node = |
249 | (struct acpi_namespace_node *)walk_state->operands[0]; | 248 | (struct acpi_namespace_node *)walk_state->operands[0]; |
250 | 249 | ||