aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/namespace
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2006-10-03 00:00:00 -0400
committerLen Brown <len.brown@intel.com>2006-04-01 01:26:39 -0500
commit8313524a0d466f451a62709aaedf988d8257b21c (patch)
treed612fc796ae07d8a39542c95eec0f5169c9f64eb /drivers/acpi/namespace
parentea936b78f46cbe089a4ac363e1682dee7d427096 (diff)
ACPI: ACPICA 20060310
Tagged all external interfaces to the subsystem with the new ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL macro. The default definition is NULL. Added the ACPI_THREAD_ID type for the return value from acpi_os_get_thread_id(). This allows the host to define this as necessary to simplify kernel integration. The default definition is ACPI_NATIVE_UINT. Valery Podrezov fixed two interpreter problems related to error processing, the deletion of objects, and placing invalid pointers onto the internal operator result stack. http://bugzilla.kernel.org/show_bug.cgi?id=6028 http://bugzilla.kernel.org/show_bug.cgi?id=6151 Increased the reference count threshold where a warning is emitted for large reference counts in order to eliminate unnecessary warnings on systems with large namespaces (especially 64-bit.) Increased the value from 0x400 to 0x800. Due to universal disagreement as to the meaning of the 'c' in the calloc() function, the ACPI_MEM_CALLOCATE macro has been renamed to ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and ACPI_FREE. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/namespace')
-rw-r--r--drivers/acpi/namespace/nsaccess.c19
-rw-r--r--drivers/acpi/namespace/nsalloc.c6
-rw-r--r--drivers/acpi/namespace/nsdumpdv.c2
-rw-r--r--drivers/acpi/namespace/nseval.c4
-rw-r--r--drivers/acpi/namespace/nsinit.c2
-rw-r--r--drivers/acpi/namespace/nsnames.c10
-rw-r--r--drivers/acpi/namespace/nsparse.c2
-rw-r--r--drivers/acpi/namespace/nssearch.c2
-rw-r--r--drivers/acpi/namespace/nsutils.c12
-rw-r--r--drivers/acpi/namespace/nsxfeval.c38
-rw-r--r--drivers/acpi/namespace/nsxfname.c16
-rw-r--r--drivers/acpi/namespace/nsxfobj.c10
12 files changed, 56 insertions, 67 deletions
diff --git a/drivers/acpi/namespace/nsaccess.c b/drivers/acpi/namespace/nsaccess.c
index 6bdad8bfcf0b..d4914fda6a37 100644
--- a/drivers/acpi/namespace/nsaccess.c
+++ b/drivers/acpi/namespace/nsaccess.c
@@ -347,14 +347,17 @@ acpi_ns_lookup(union acpi_generic_state *scope_info,
347 return_ACPI_STATUS(AE_AML_INTERNAL); 347 return_ACPI_STATUS(AE_AML_INTERNAL);
348 } 348 }
349 349
350 /* 350 if (!(flags & ACPI_NS_PREFIX_IS_SCOPE)) {
351 * This node might not be a actual "scope" node (such as a 351 /*
352 * Device/Method, etc.) It could be a Package or other object node. 352 * This node might not be a actual "scope" node (such as a
353 * Backup up the tree to find the containing scope node. 353 * Device/Method, etc.) It could be a Package or other object node.
354 */ 354 * Backup up the tree to find the containing scope node.
355 while (!acpi_ns_opens_scope(prefix_node->type) && 355 */
356 prefix_node->type != ACPI_TYPE_ANY) { 356 while (!acpi_ns_opens_scope(prefix_node->type) &&
357 prefix_node = acpi_ns_get_parent_node(prefix_node); 357 prefix_node->type != ACPI_TYPE_ANY) {
358 prefix_node =
359 acpi_ns_get_parent_node(prefix_node);
360 }
358 } 361 }
359 } 362 }
360 363
diff --git a/drivers/acpi/namespace/nsalloc.c b/drivers/acpi/namespace/nsalloc.c
index cd26cb971a1c..acd4b6732ac4 100644
--- a/drivers/acpi/namespace/nsalloc.c
+++ b/drivers/acpi/namespace/nsalloc.c
@@ -68,7 +68,7 @@ struct acpi_namespace_node *acpi_ns_create_node(u32 name)
68 68
69 ACPI_FUNCTION_TRACE("ns_create_node"); 69 ACPI_FUNCTION_TRACE("ns_create_node");
70 70
71 node = ACPI_MEM_CALLOCATE(sizeof(struct acpi_namespace_node)); 71 node = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_namespace_node));
72 if (!node) { 72 if (!node) {
73 return_PTR(NULL); 73 return_PTR(NULL);
74 } 74 }
@@ -142,7 +142,7 @@ void acpi_ns_delete_node(struct acpi_namespace_node *node)
142 * Detach an object if there is one then delete the node 142 * Detach an object if there is one then delete the node
143 */ 143 */
144 acpi_ns_detach_object(node); 144 acpi_ns_detach_object(node);
145 ACPI_MEM_FREE(node); 145 ACPI_FREE(node);
146 return_VOID; 146 return_VOID;
147} 147}
148 148
@@ -311,7 +311,7 @@ void acpi_ns_delete_children(struct acpi_namespace_node *parent_node)
311 311
312 /* Now we can delete the node */ 312 /* Now we can delete the node */
313 313
314 ACPI_MEM_FREE(child_node); 314 ACPI_FREE(child_node);
315 315
316 /* And move on to the next child in the list */ 316 /* And move on to the next child in the list */
317 317
diff --git a/drivers/acpi/namespace/nsdumpdv.c b/drivers/acpi/namespace/nsdumpdv.c
index aff899a935e3..2b311da01ef5 100644
--- a/drivers/acpi/namespace/nsdumpdv.c
+++ b/drivers/acpi/namespace/nsdumpdv.c
@@ -92,7 +92,7 @@ acpi_ns_dump_one_device(acpi_handle obj_handle,
92 info->hardware_id.value, 92 info->hardware_id.value,
93 ACPI_FORMAT_UINT64(info->address), 93 ACPI_FORMAT_UINT64(info->address),
94 info->current_status)); 94 info->current_status));
95 ACPI_MEM_FREE(info); 95 ACPI_FREE(info);
96 } 96 }
97 97
98 return (status); 98 return (status);
diff --git a/drivers/acpi/namespace/nseval.c b/drivers/acpi/namespace/nseval.c
index 80ef95545636..f5d8e71b82cc 100644
--- a/drivers/acpi/namespace/nseval.c
+++ b/drivers/acpi/namespace/nseval.c
@@ -151,7 +151,7 @@ acpi_ns_evaluate_relative(char *pathname, struct acpi_parameter_info *info)
151 acpi_ut_delete_generic_state(scope_info); 151 acpi_ut_delete_generic_state(scope_info);
152 152
153 cleanup1: 153 cleanup1:
154 ACPI_MEM_FREE(internal_path); 154 ACPI_FREE(internal_path);
155 return_ACPI_STATUS(status); 155 return_ACPI_STATUS(status);
156} 156}
157 157
@@ -228,7 +228,7 @@ acpi_ns_evaluate_by_name(char *pathname, struct acpi_parameter_info *info)
228 /* Cleanup */ 228 /* Cleanup */
229 229
230 if (internal_path) { 230 if (internal_path) {
231 ACPI_MEM_FREE(internal_path); 231 ACPI_FREE(internal_path);
232 } 232 }
233 233
234 return_ACPI_STATUS(status); 234 return_ACPI_STATUS(status);
diff --git a/drivers/acpi/namespace/nsinit.c b/drivers/acpi/namespace/nsinit.c
index 9aa337c33887..57b2537643c7 100644
--- a/drivers/acpi/namespace/nsinit.c
+++ b/drivers/acpi/namespace/nsinit.c
@@ -424,7 +424,7 @@ acpi_ns_init_one_device(acpi_handle obj_handle,
424 ACPI_WARNING((AE_INFO, "%s._INI failed: %s", 424 ACPI_WARNING((AE_INFO, "%s._INI failed: %s",
425 scope_name, acpi_format_exception(status))); 425 scope_name, acpi_format_exception(status)));
426 426
427 ACPI_MEM_FREE(scope_name); 427 ACPI_FREE(scope_name);
428#endif 428#endif
429 } else { 429 } else {
430 /* Delete any return object (especially if implicit_return is enabled) */ 430 /* Delete any return object (especially if implicit_return is enabled) */
diff --git a/drivers/acpi/namespace/nsnames.c b/drivers/acpi/namespace/nsnames.c
index 639f653b4b6b..ba812f43897f 100644
--- a/drivers/acpi/namespace/nsnames.c
+++ b/drivers/acpi/namespace/nsnames.c
@@ -48,11 +48,6 @@
48#define _COMPONENT ACPI_NAMESPACE 48#define _COMPONENT ACPI_NAMESPACE
49ACPI_MODULE_NAME("nsnames") 49ACPI_MODULE_NAME("nsnames")
50 50
51/* Local prototypes */
52static void
53acpi_ns_build_external_path(struct acpi_namespace_node *node,
54 acpi_size size, char *name_buffer);
55
56/******************************************************************************* 51/*******************************************************************************
57 * 52 *
58 * FUNCTION: acpi_ns_build_external_path 53 * FUNCTION: acpi_ns_build_external_path
@@ -67,8 +62,7 @@ acpi_ns_build_external_path(struct acpi_namespace_node *node,
67 * DESCRIPTION: Generate a full pathaname 62 * DESCRIPTION: Generate a full pathaname
68 * 63 *
69 ******************************************************************************/ 64 ******************************************************************************/
70 65void
71static void
72acpi_ns_build_external_path(struct acpi_namespace_node *node, 66acpi_ns_build_external_path(struct acpi_namespace_node *node,
73 acpi_size size, char *name_buffer) 67 acpi_size size, char *name_buffer)
74{ 68{
@@ -146,7 +140,7 @@ char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node)
146 140
147 /* Allocate a buffer to be returned to caller */ 141 /* Allocate a buffer to be returned to caller */
148 142
149 name_buffer = ACPI_MEM_CALLOCATE(size); 143 name_buffer = ACPI_ALLOCATE_ZEROED(size);
150 if (!name_buffer) { 144 if (!name_buffer) {
151 ACPI_ERROR((AE_INFO, "Allocation failure")); 145 ACPI_ERROR((AE_INFO, "Allocation failure"));
152 return_PTR(NULL); 146 return_PTR(NULL);
diff --git a/drivers/acpi/namespace/nsparse.c b/drivers/acpi/namespace/nsparse.c
index 232be4303653..64daf3028dea 100644
--- a/drivers/acpi/namespace/nsparse.c
+++ b/drivers/acpi/namespace/nsparse.c
@@ -62,7 +62,7 @@ ACPI_MODULE_NAME("nsparse")
62 * 62 *
63 ******************************************************************************/ 63 ******************************************************************************/
64acpi_status 64acpi_status
65acpi_ns_one_complete_parse(u8 pass_number, struct acpi_table_desc * table_desc) 65acpi_ns_one_complete_parse(u8 pass_number, struct acpi_table_desc *table_desc)
66{ 66{
67 union acpi_parse_object *parse_root; 67 union acpi_parse_object *parse_root;
68 acpi_status status; 68 acpi_status status;
diff --git a/drivers/acpi/namespace/nssearch.c b/drivers/acpi/namespace/nssearch.c
index f73a3d566168..c929f45071c0 100644
--- a/drivers/acpi/namespace/nssearch.c
+++ b/drivers/acpi/namespace/nssearch.c
@@ -103,7 +103,7 @@ acpi_ns_search_node(u32 target_name,
103 &target_name), 103 &target_name),
104 acpi_ut_get_type_name(type))); 104 acpi_ut_get_type_name(type)));
105 105
106 ACPI_MEM_FREE(scope_name); 106 ACPI_FREE(scope_name);
107 } 107 }
108 } 108 }
109#endif 109#endif
diff --git a/drivers/acpi/namespace/nsutils.c b/drivers/acpi/namespace/nsutils.c
index 123f454b14ab..586014ecf24b 100644
--- a/drivers/acpi/namespace/nsutils.c
+++ b/drivers/acpi/namespace/nsutils.c
@@ -104,7 +104,7 @@ acpi_ns_report_error(char *module_name,
104 } 104 }
105 105
106 if (name) { 106 if (name) {
107 ACPI_MEM_FREE(name); 107 ACPI_FREE(name);
108 } 108 }
109 } 109 }
110 110
@@ -187,7 +187,7 @@ acpi_ns_print_node_pathname(struct acpi_namespace_node *node, char *message)
187 } 187 }
188 188
189 acpi_os_printf("[%s] (Node %p)", (char *)buffer.pointer, node); 189 acpi_os_printf("[%s] (Node %p)", (char *)buffer.pointer, node);
190 ACPI_MEM_FREE(buffer.pointer); 190 ACPI_FREE(buffer.pointer);
191 } 191 }
192} 192}
193 193
@@ -490,7 +490,7 @@ acpi_status acpi_ns_internalize_name(char *external_name, char **converted_name)
490 490
491 /* We need a segment to store the internal name */ 491 /* We need a segment to store the internal name */
492 492
493 internal_name = ACPI_MEM_CALLOCATE(info.length); 493 internal_name = ACPI_ALLOCATE_ZEROED(info.length);
494 if (!internal_name) { 494 if (!internal_name) {
495 return_ACPI_STATUS(AE_NO_MEMORY); 495 return_ACPI_STATUS(AE_NO_MEMORY);
496 } 496 }
@@ -500,7 +500,7 @@ acpi_status acpi_ns_internalize_name(char *external_name, char **converted_name)
500 info.internal_name = internal_name; 500 info.internal_name = internal_name;
501 status = acpi_ns_build_internal_name(&info); 501 status = acpi_ns_build_internal_name(&info);
502 if (ACPI_FAILURE(status)) { 502 if (ACPI_FAILURE(status)) {
503 ACPI_MEM_FREE(internal_name); 503 ACPI_FREE(internal_name);
504 return_ACPI_STATUS(status); 504 return_ACPI_STATUS(status);
505 } 505 }
506 506
@@ -632,7 +632,7 @@ acpi_ns_externalize_name(u32 internal_name_length,
632 /* 632 /*
633 * Build converted_name 633 * Build converted_name
634 */ 634 */
635 *converted_name = ACPI_MEM_CALLOCATE(required_length); 635 *converted_name = ACPI_ALLOCATE_ZEROED(required_length);
636 if (!(*converted_name)) { 636 if (!(*converted_name)) {
637 return_ACPI_STATUS(AE_NO_MEMORY); 637 return_ACPI_STATUS(AE_NO_MEMORY);
638 } 638 }
@@ -879,7 +879,7 @@ acpi_ns_get_node_by_path(char *pathname,
879 879
880 cleanup: 880 cleanup:
881 if (internal_path) { 881 if (internal_path) {
882 ACPI_MEM_FREE(internal_path); 882 ACPI_FREE(internal_path);
883 } 883 }
884 return_ACPI_STATUS(status); 884 return_ACPI_STATUS(status);
885} 885}
diff --git a/drivers/acpi/namespace/nsxfeval.c b/drivers/acpi/namespace/nsxfeval.c
index 71e7769d7daf..7cdedc96a40a 100644
--- a/drivers/acpi/namespace/nsxfeval.c
+++ b/drivers/acpi/namespace/nsxfeval.c
@@ -42,8 +42,6 @@
42 * POSSIBILITY OF SUCH DAMAGES. 42 * POSSIBILITY OF SUCH DAMAGES.
43 */ 43 */
44 44
45#include <linux/module.h>
46
47#include <acpi/acpi.h> 45#include <acpi/acpi.h>
48#include <acpi/acnamesp.h> 46#include <acpi/acnamesp.h>
49#include <acpi/acinterp.h> 47#include <acpi/acinterp.h>
@@ -51,6 +49,7 @@
51#define _COMPONENT ACPI_NAMESPACE 49#define _COMPONENT ACPI_NAMESPACE
52ACPI_MODULE_NAME("nsxfeval") 50ACPI_MODULE_NAME("nsxfeval")
53 51
52#ifdef ACPI_FUTURE_USAGE
54/******************************************************************************* 53/*******************************************************************************
55 * 54 *
56 * FUNCTION: acpi_evaluate_object_typed 55 * FUNCTION: acpi_evaluate_object_typed
@@ -71,12 +70,11 @@ ACPI_MODULE_NAME("nsxfeval")
71 * be valid (non-null) 70 * be valid (non-null)
72 * 71 *
73 ******************************************************************************/ 72 ******************************************************************************/
74#ifdef ACPI_FUTURE_USAGE
75acpi_status 73acpi_status
76acpi_evaluate_object_typed(acpi_handle handle, 74acpi_evaluate_object_typed(acpi_handle handle,
77 acpi_string pathname, 75 acpi_string pathname,
78 struct acpi_object_list *external_params, 76 struct acpi_object_list * external_params,
79 struct acpi_buffer *return_buffer, 77 struct acpi_buffer * return_buffer,
80 acpi_object_type return_type) 78 acpi_object_type return_type)
81{ 79{
82 acpi_status status; 80 acpi_status status;
@@ -142,6 +140,8 @@ acpi_evaluate_object_typed(acpi_handle handle,
142 return_buffer->length = 0; 140 return_buffer->length = 0;
143 return_ACPI_STATUS(AE_TYPE); 141 return_ACPI_STATUS(AE_TYPE);
144} 142}
143
144ACPI_EXPORT_SYMBOL(acpi_evaluate_object_typed)
145#endif /* ACPI_FUTURE_USAGE */ 145#endif /* ACPI_FUTURE_USAGE */
146 146
147/******************************************************************************* 147/*******************************************************************************
@@ -163,7 +163,6 @@ acpi_evaluate_object_typed(acpi_handle handle,
163 * be valid (non-null) 163 * be valid (non-null)
164 * 164 *
165 ******************************************************************************/ 165 ******************************************************************************/
166
167acpi_status 166acpi_status
168acpi_evaluate_object(acpi_handle handle, 167acpi_evaluate_object(acpi_handle handle,
169 acpi_string pathname, 168 acpi_string pathname,
@@ -193,9 +192,9 @@ acpi_evaluate_object(acpi_handle handle,
193 * Allocate a new parameter block for the internal objects 192 * Allocate a new parameter block for the internal objects
194 * Add 1 to count to allow for null terminated internal list 193 * Add 1 to count to allow for null terminated internal list
195 */ 194 */
196 info.parameters = ACPI_MEM_CALLOCATE(((acpi_size) 195 info.parameters = ACPI_ALLOCATE_ZEROED(((acpi_size)
197 external_params->count + 196 external_params->count +
198 1) * sizeof(void *)); 197 1) * sizeof(void *));
199 if (!info.parameters) { 198 if (!info.parameters) {
200 return_ACPI_STATUS(AE_NO_MEMORY); 199 return_ACPI_STATUS(AE_NO_MEMORY);
201 } 200 }
@@ -356,7 +355,7 @@ acpi_evaluate_object(acpi_handle handle,
356 return_ACPI_STATUS(status); 355 return_ACPI_STATUS(status);
357} 356}
358 357
359EXPORT_SYMBOL(acpi_evaluate_object); 358ACPI_EXPORT_SYMBOL(acpi_evaluate_object)
360 359
361/******************************************************************************* 360/*******************************************************************************
362 * 361 *
@@ -387,7 +386,6 @@ EXPORT_SYMBOL(acpi_evaluate_object);
387 * function, etc. 386 * function, etc.
388 * 387 *
389 ******************************************************************************/ 388 ******************************************************************************/
390
391acpi_status 389acpi_status
392acpi_walk_namespace(acpi_object_type type, 390acpi_walk_namespace(acpi_object_type type,
393 acpi_handle start_object, 391 acpi_handle start_object,
@@ -424,7 +422,7 @@ acpi_walk_namespace(acpi_object_type type,
424 return_ACPI_STATUS(status); 422 return_ACPI_STATUS(status);
425} 423}
426 424
427EXPORT_SYMBOL(acpi_walk_namespace); 425ACPI_EXPORT_SYMBOL(acpi_walk_namespace)
428 426
429/******************************************************************************* 427/*******************************************************************************
430 * 428 *
@@ -439,7 +437,6 @@ EXPORT_SYMBOL(acpi_walk_namespace);
439 * on that. 437 * on that.
440 * 438 *
441 ******************************************************************************/ 439 ******************************************************************************/
442
443static acpi_status 440static acpi_status
444acpi_ns_get_device_callback(acpi_handle obj_handle, 441acpi_ns_get_device_callback(acpi_handle obj_handle,
445 u32 nesting_level, 442 u32 nesting_level,
@@ -510,11 +507,11 @@ acpi_ns_get_device_callback(acpi_handle obj_handle,
510 sizeof(struct 507 sizeof(struct
511 acpi_compatible_id)) != 508 acpi_compatible_id)) !=
512 0) { 509 0) {
513 ACPI_MEM_FREE(cid); 510 ACPI_FREE(cid);
514 return (AE_OK); 511 return (AE_OK);
515 } 512 }
516 } 513 }
517 ACPI_MEM_FREE(cid); 514 ACPI_FREE(cid);
518 } 515 }
519 } 516 }
520 517
@@ -592,7 +589,7 @@ acpi_get_devices(char *HID,
592 return_ACPI_STATUS(status); 589 return_ACPI_STATUS(status);
593} 590}
594 591
595EXPORT_SYMBOL(acpi_get_devices); 592ACPI_EXPORT_SYMBOL(acpi_get_devices)
596 593
597/******************************************************************************* 594/*******************************************************************************
598 * 595 *
@@ -607,7 +604,6 @@ EXPORT_SYMBOL(acpi_get_devices);
607 * DESCRIPTION: Attach arbitrary data and handler to a namespace node. 604 * DESCRIPTION: Attach arbitrary data and handler to a namespace node.
608 * 605 *
609 ******************************************************************************/ 606 ******************************************************************************/
610
611acpi_status 607acpi_status
612acpi_attach_data(acpi_handle obj_handle, 608acpi_attach_data(acpi_handle obj_handle,
613 acpi_object_handler handler, void *data) 609 acpi_object_handler handler, void *data)
@@ -641,6 +637,8 @@ acpi_attach_data(acpi_handle obj_handle,
641 return (status); 637 return (status);
642} 638}
643 639
640ACPI_EXPORT_SYMBOL(acpi_attach_data)
641
644/******************************************************************************* 642/*******************************************************************************
645 * 643 *
646 * FUNCTION: acpi_detach_data 644 * FUNCTION: acpi_detach_data
@@ -653,7 +651,6 @@ acpi_attach_data(acpi_handle obj_handle,
653 * DESCRIPTION: Remove data that was previously attached to a node. 651 * DESCRIPTION: Remove data that was previously attached to a node.
654 * 652 *
655 ******************************************************************************/ 653 ******************************************************************************/
656
657acpi_status 654acpi_status
658acpi_detach_data(acpi_handle obj_handle, acpi_object_handler handler) 655acpi_detach_data(acpi_handle obj_handle, acpi_object_handler handler)
659{ 656{
@@ -686,6 +683,8 @@ acpi_detach_data(acpi_handle obj_handle, acpi_object_handler handler)
686 return (status); 683 return (status);
687} 684}
688 685
686ACPI_EXPORT_SYMBOL(acpi_detach_data)
687
689/******************************************************************************* 688/*******************************************************************************
690 * 689 *
691 * FUNCTION: acpi_get_data 690 * FUNCTION: acpi_get_data
@@ -699,7 +698,6 @@ acpi_detach_data(acpi_handle obj_handle, acpi_object_handler handler)
699 * DESCRIPTION: Retrieve data that was previously attached to a namespace node. 698 * DESCRIPTION: Retrieve data that was previously attached to a namespace node.
700 * 699 *
701 ******************************************************************************/ 700 ******************************************************************************/
702
703acpi_status 701acpi_status
704acpi_get_data(acpi_handle obj_handle, acpi_object_handler handler, void **data) 702acpi_get_data(acpi_handle obj_handle, acpi_object_handler handler, void **data)
705{ 703{
@@ -731,3 +729,5 @@ acpi_get_data(acpi_handle obj_handle, acpi_object_handler handler, void **data)
731 (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); 729 (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
732 return (status); 730 return (status);
733} 731}
732
733ACPI_EXPORT_SYMBOL(acpi_get_data)
diff --git a/drivers/acpi/namespace/nsxfname.c b/drivers/acpi/namespace/nsxfname.c
index 55d26624ab9f..1303e2b062bb 100644
--- a/drivers/acpi/namespace/nsxfname.c
+++ b/drivers/acpi/namespace/nsxfname.c
@@ -42,8 +42,6 @@
42 * POSSIBILITY OF SUCH DAMAGES. 42 * POSSIBILITY OF SUCH DAMAGES.
43 */ 43 */
44 44
45#include <linux/module.h>
46
47#include <acpi/acpi.h> 45#include <acpi/acpi.h>
48#include <acpi/acnamesp.h> 46#include <acpi/acnamesp.h>
49 47
@@ -126,7 +124,7 @@ acpi_get_handle(acpi_handle parent,
126 return (status); 124 return (status);
127} 125}
128 126
129EXPORT_SYMBOL(acpi_get_handle); 127ACPI_EXPORT_SYMBOL(acpi_get_handle)
130 128
131/****************************************************************************** 129/******************************************************************************
132 * 130 *
@@ -143,7 +141,6 @@ EXPORT_SYMBOL(acpi_get_handle);
143 * complementary functions. 141 * complementary functions.
144 * 142 *
145 ******************************************************************************/ 143 ******************************************************************************/
146
147acpi_status 144acpi_status
148acpi_get_name(acpi_handle handle, u32 name_type, struct acpi_buffer * buffer) 145acpi_get_name(acpi_handle handle, u32 name_type, struct acpi_buffer * buffer)
149{ 146{
@@ -204,7 +201,7 @@ acpi_get_name(acpi_handle handle, u32 name_type, struct acpi_buffer * buffer)
204 return (status); 201 return (status);
205} 202}
206 203
207EXPORT_SYMBOL(acpi_get_name); 204ACPI_EXPORT_SYMBOL(acpi_get_name)
208 205
209/****************************************************************************** 206/******************************************************************************
210 * 207 *
@@ -220,7 +217,6 @@ EXPORT_SYMBOL(acpi_get_name);
220 * control methods (Such as in the case of a device.) 217 * control methods (Such as in the case of a device.)
221 * 218 *
222 ******************************************************************************/ 219 ******************************************************************************/
223
224acpi_status 220acpi_status
225acpi_get_object_info(acpi_handle handle, struct acpi_buffer * buffer) 221acpi_get_object_info(acpi_handle handle, struct acpi_buffer * buffer)
226{ 222{
@@ -242,7 +238,7 @@ acpi_get_object_info(acpi_handle handle, struct acpi_buffer * buffer)
242 return (status); 238 return (status);
243 } 239 }
244 240
245 info = ACPI_MEM_CALLOCATE(sizeof(struct acpi_device_info)); 241 info = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_device_info));
246 if (!info) { 242 if (!info) {
247 return (AE_NO_MEMORY); 243 return (AE_NO_MEMORY);
248 } 244 }
@@ -346,11 +342,11 @@ acpi_get_object_info(acpi_handle handle, struct acpi_buffer * buffer)
346 } 342 }
347 343
348 cleanup: 344 cleanup:
349 ACPI_MEM_FREE(info); 345 ACPI_FREE(info);
350 if (cid_list) { 346 if (cid_list) {
351 ACPI_MEM_FREE(cid_list); 347 ACPI_FREE(cid_list);
352 } 348 }
353 return (status); 349 return (status);
354} 350}
355 351
356EXPORT_SYMBOL(acpi_get_object_info); 352ACPI_EXPORT_SYMBOL(acpi_get_object_info)
diff --git a/drivers/acpi/namespace/nsxfobj.c b/drivers/acpi/namespace/nsxfobj.c
index 9c5f3302799c..a163e1d3708d 100644
--- a/drivers/acpi/namespace/nsxfobj.c
+++ b/drivers/acpi/namespace/nsxfobj.c
@@ -42,8 +42,6 @@
42 * POSSIBILITY OF SUCH DAMAGES. 42 * POSSIBILITY OF SUCH DAMAGES.
43 */ 43 */
44 44
45#include <linux/module.h>
46
47#include <acpi/acpi.h> 45#include <acpi/acpi.h>
48#include <acpi/acnamesp.h> 46#include <acpi/acnamesp.h>
49 47
@@ -101,7 +99,7 @@ acpi_status acpi_get_type(acpi_handle handle, acpi_object_type * ret_type)
101 return (status); 99 return (status);
102} 100}
103 101
104EXPORT_SYMBOL(acpi_get_type); 102ACPI_EXPORT_SYMBOL(acpi_get_type)
105 103
106/******************************************************************************* 104/*******************************************************************************
107 * 105 *
@@ -116,7 +114,6 @@ EXPORT_SYMBOL(acpi_get_type);
116 * Handle. 114 * Handle.
117 * 115 *
118 ******************************************************************************/ 116 ******************************************************************************/
119
120acpi_status acpi_get_parent(acpi_handle handle, acpi_handle * ret_handle) 117acpi_status acpi_get_parent(acpi_handle handle, acpi_handle * ret_handle)
121{ 118{
122 struct acpi_namespace_node *node; 119 struct acpi_namespace_node *node;
@@ -162,7 +159,7 @@ acpi_status acpi_get_parent(acpi_handle handle, acpi_handle * ret_handle)
162 return (status); 159 return (status);
163} 160}
164 161
165EXPORT_SYMBOL(acpi_get_parent); 162ACPI_EXPORT_SYMBOL(acpi_get_parent)
166 163
167/******************************************************************************* 164/*******************************************************************************
168 * 165 *
@@ -181,7 +178,6 @@ EXPORT_SYMBOL(acpi_get_parent);
181 * Scope is returned. 178 * Scope is returned.
182 * 179 *
183 ******************************************************************************/ 180 ******************************************************************************/
184
185acpi_status 181acpi_status
186acpi_get_next_object(acpi_object_type type, 182acpi_get_next_object(acpi_object_type type,
187 acpi_handle parent, 183 acpi_handle parent,
@@ -243,4 +239,4 @@ acpi_get_next_object(acpi_object_type type,
243 return (status); 239 return (status);
244} 240}
245 241
246EXPORT_SYMBOL(acpi_get_next_object); 242ACPI_EXPORT_SYMBOL(acpi_get_next_object)