aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/namespace/nsxfeval.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/namespace/nsxfeval.c')
-rw-r--r--drivers/acpi/namespace/nsxfeval.c38
1 files changed, 19 insertions, 19 deletions
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)