diff options
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 00b0728efe82..7d92f73b265f 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -171,7 +171,7 @@ acpi_battery_get_info(struct acpi_battery *battery, | |||
171 | } | 171 | } |
172 | 172 | ||
173 | end: | 173 | end: |
174 | acpi_os_free(buffer.pointer); | 174 | kfree(buffer.pointer); |
175 | 175 | ||
176 | if (!result) | 176 | if (!result) |
177 | (*bif) = (struct acpi_battery_info *)data.pointer; | 177 | (*bif) = (struct acpi_battery_info *)data.pointer; |
@@ -231,7 +231,7 @@ acpi_battery_get_status(struct acpi_battery *battery, | |||
231 | } | 231 | } |
232 | 232 | ||
233 | end: | 233 | end: |
234 | acpi_os_free(buffer.pointer); | 234 | kfree(buffer.pointer); |
235 | 235 | ||
236 | if (!result) | 236 | if (!result) |
237 | (*bst) = (struct acpi_battery_status *)data.pointer; | 237 | (*bst) = (struct acpi_battery_status *)data.pointer; |