aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/namespace/nsxfname.c
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/nsxfname.c
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/nsxfname.c')
-rw-r--r--drivers/acpi/namespace/nsxfname.c16
1 files changed, 6 insertions, 10 deletions
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)