diff options
Diffstat (limited to 'drivers/acpi/dispatcher/dsinit.c')
-rw-r--r-- | drivers/acpi/dispatcher/dsinit.c | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/drivers/acpi/dispatcher/dsinit.c b/drivers/acpi/dispatcher/dsinit.c index 8693c704aea6..258fbdfaa69c 100644 --- a/drivers/acpi/dispatcher/dsinit.c +++ b/drivers/acpi/dispatcher/dsinit.c | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -84,7 +84,7 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
84 | acpi_object_type type; | 84 | acpi_object_type type; |
85 | acpi_status status; | 85 | acpi_status status; |
86 | 86 | ||
87 | ACPI_FUNCTION_NAME("ds_init_one_object"); | 87 | ACPI_FUNCTION_ENTRY(); |
88 | 88 | ||
89 | /* | 89 | /* |
90 | * We are only interested in NS nodes owned by the table that | 90 | * We are only interested in NS nodes owned by the table that |
@@ -105,11 +105,7 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
105 | 105 | ||
106 | status = acpi_ds_initialize_region(obj_handle); | 106 | status = acpi_ds_initialize_region(obj_handle); |
107 | if (ACPI_FAILURE(status)) { | 107 | if (ACPI_FAILURE(status)) { |
108 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 108 | ACPI_REPORT_ERROR(("Region %p [%4.4s] - Init failure, %s\n", obj_handle, acpi_ut_get_node_name(obj_handle), acpi_format_exception(status))); |
109 | "Region %p [%4.4s] - Init failure, %s\n", | ||
110 | obj_handle, | ||
111 | acpi_ut_get_node_name(obj_handle), | ||
112 | acpi_format_exception(status))); | ||
113 | } | 109 | } |
114 | 110 | ||
115 | info->op_region_count++; | 111 | info->op_region_count++; |
@@ -118,14 +114,6 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
118 | case ACPI_TYPE_METHOD: | 114 | case ACPI_TYPE_METHOD: |
119 | 115 | ||
120 | /* | 116 | /* |
121 | * Print a dot for each method unless we are going to print | ||
122 | * the entire pathname | ||
123 | */ | ||
124 | if (!(acpi_dbg_level & ACPI_LV_INIT_NAMES)) { | ||
125 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, ".")); | ||
126 | } | ||
127 | |||
128 | /* | ||
129 | * Set the execution data width (32 or 64) based upon the | 117 | * Set the execution data width (32 or 64) based upon the |
130 | * revision number of the parent ACPI table. | 118 | * revision number of the parent ACPI table. |
131 | * TBD: This is really for possible future support of integer width | 119 | * TBD: This is really for possible future support of integer width |
@@ -134,6 +122,21 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
134 | if (info->table_desc->pointer->revision == 1) { | 122 | if (info->table_desc->pointer->revision == 1) { |
135 | node->flags |= ANOBJ_DATA_WIDTH_32; | 123 | node->flags |= ANOBJ_DATA_WIDTH_32; |
136 | } | 124 | } |
125 | #ifdef ACPI_INIT_PARSE_METHODS | ||
126 | /* | ||
127 | * Note 11/2005: Removed this code to parse all methods during table | ||
128 | * load because it causes problems if there are any errors during the | ||
129 | * parse. Also, it seems like overkill and we probably don't want to | ||
130 | * abort a table load because of an issue with a single method. | ||
131 | */ | ||
132 | |||
133 | /* | ||
134 | * Print a dot for each method unless we are going to print | ||
135 | * the entire pathname | ||
136 | */ | ||
137 | if (!(acpi_dbg_level & ACPI_LV_INIT_NAMES)) { | ||
138 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, ".")); | ||
139 | } | ||
137 | 140 | ||
138 | /* | 141 | /* |
139 | * Always parse methods to detect errors, we will delete | 142 | * Always parse methods to detect errors, we will delete |
@@ -141,15 +144,11 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
141 | */ | 144 | */ |
142 | status = acpi_ds_parse_method(obj_handle); | 145 | status = acpi_ds_parse_method(obj_handle); |
143 | if (ACPI_FAILURE(status)) { | 146 | if (ACPI_FAILURE(status)) { |
144 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 147 | ACPI_REPORT_ERROR(("\n+Method %p [%4.4s] - parse failure, %s\n", obj_handle, acpi_ut_get_node_name(obj_handle), acpi_format_exception(status))); |
145 | "\n+Method %p [%4.4s] - parse failure, %s\n", | ||
146 | obj_handle, | ||
147 | acpi_ut_get_node_name(obj_handle), | ||
148 | acpi_format_exception(status))); | ||
149 | 148 | ||
150 | /* This parse failed, but we will continue parsing more methods */ | 149 | /* This parse failed, but we will continue parsing more methods */ |
151 | } | 150 | } |
152 | 151 | #endif | |
153 | info->method_count++; | 152 | info->method_count++; |
154 | break; | 153 | break; |
155 | 154 | ||
@@ -207,8 +206,8 @@ acpi_ds_initialize_objects(struct acpi_table_desc * table_desc, | |||
207 | status = acpi_walk_namespace(ACPI_TYPE_ANY, start_node, ACPI_UINT32_MAX, | 206 | status = acpi_walk_namespace(ACPI_TYPE_ANY, start_node, ACPI_UINT32_MAX, |
208 | acpi_ds_init_one_object, &info, NULL); | 207 | acpi_ds_init_one_object, &info, NULL); |
209 | if (ACPI_FAILURE(status)) { | 208 | if (ACPI_FAILURE(status)) { |
210 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "walk_namespace failed, %s\n", | 209 | ACPI_REPORT_ERROR(("walk_namespace failed, %s\n", |
211 | acpi_format_exception(status))); | 210 | acpi_format_exception(status))); |
212 | } | 211 | } |
213 | 212 | ||
214 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, | 213 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, |