diff options
Diffstat (limited to 'drivers/acpi/namespace/nsnames.c')
| -rw-r--r-- | drivers/acpi/namespace/nsnames.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/acpi/namespace/nsnames.c b/drivers/acpi/namespace/nsnames.c index 639f653b4b6b..97b8332c9746 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 |
| 49 | ACPI_MODULE_NAME("nsnames") | 49 | ACPI_MODULE_NAME("nsnames") |
| 50 | 50 | ||
| 51 | /* Local prototypes */ | ||
| 52 | static void | ||
| 53 | acpi_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 | 65 | void | |
| 71 | static void | ||
| 72 | acpi_ns_build_external_path(struct acpi_namespace_node *node, | 66 | acpi_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 | { |
| @@ -138,7 +132,7 @@ char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node) | |||
| 138 | char *name_buffer; | 132 | char *name_buffer; |
| 139 | acpi_size size; | 133 | acpi_size size; |
| 140 | 134 | ||
| 141 | ACPI_FUNCTION_TRACE_PTR("ns_get_external_pathname", node); | 135 | ACPI_FUNCTION_TRACE_PTR(ns_get_external_pathname, node); |
| 142 | 136 | ||
| 143 | /* Calculate required buffer size based on depth below root */ | 137 | /* Calculate required buffer size based on depth below root */ |
| 144 | 138 | ||
| @@ -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); |
| @@ -219,7 +213,7 @@ acpi_ns_handle_to_pathname(acpi_handle target_handle, | |||
| 219 | struct acpi_namespace_node *node; | 213 | struct acpi_namespace_node *node; |
| 220 | acpi_size required_size; | 214 | acpi_size required_size; |
| 221 | 215 | ||
| 222 | ACPI_FUNCTION_TRACE_PTR("ns_handle_to_pathname", target_handle); | 216 | ACPI_FUNCTION_TRACE_PTR(ns_handle_to_pathname, target_handle); |
| 223 | 217 | ||
| 224 | node = acpi_ns_map_handle_to_node(target_handle); | 218 | node = acpi_ns_map_handle_to_node(target_handle); |
| 225 | if (!node) { | 219 | if (!node) { |
