aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/namespace/nsxfname.c
diff options
context:
space:
mode:
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)