diff options
author | Lv Zheng <lv.zheng@intel.com> | 2014-01-08 00:43:23 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-01-08 09:31:36 -0500 |
commit | bb3fec146c8561441db058db07b3fbdd7fe7e1df (patch) | |
tree | 4ec8e389084149ebf95831cef14de002dddb5055 /drivers/acpi/acpica/utalloc.c | |
parent | 5af2b6351b3cc0dadd6888928005a61f2667c80d (diff) |
ACPICA: Remove unused ACPI_FREE_BUFFER macro. No functional change.
This macro is no longer used by ACPICA and it is not public.
Also update comments related to the use of ACPI_ALLOCATE_BUFFER and
the use of acpi_os_free (kfree is equivalent and prefered in the
kernel) to free the buffer.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/utalloc.c')
-rw-r--r-- | drivers/acpi/acpica/utalloc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/utalloc.c b/drivers/acpi/acpica/utalloc.c index 814267f52715..1851762fc5b5 100644 --- a/drivers/acpi/acpica/utalloc.c +++ b/drivers/acpi/acpica/utalloc.c | |||
@@ -302,9 +302,13 @@ acpi_ut_initialize_buffer(struct acpi_buffer * buffer, | |||
302 | return (AE_BUFFER_OVERFLOW); | 302 | return (AE_BUFFER_OVERFLOW); |
303 | 303 | ||
304 | case ACPI_ALLOCATE_BUFFER: | 304 | case ACPI_ALLOCATE_BUFFER: |
305 | 305 | /* | |
306 | /* Allocate a new buffer */ | 306 | * Allocate a new buffer. We directectly call acpi_os_allocate here to |
307 | 307 | * purposefully bypass the (optionally enabled) internal allocation | |
308 | * tracking mechanism since we only want to track internal | ||
309 | * allocations. Note: The caller should use acpi_os_free to free this | ||
310 | * buffer created via ACPI_ALLOCATE_BUFFER. | ||
311 | */ | ||
308 | buffer->pointer = acpi_os_allocate(required_length); | 312 | buffer->pointer = acpi_os_allocate(required_length); |
309 | break; | 313 | break; |
310 | 314 | ||