Pull acpi_device_handle_cleanup into release branch
[linux-2.6.git] / drivers / acpi / battery.c
index 6ce93306dd378dd6c8f541a0d1456e2494c1ed1d..2b8aab560b5855ae51bb56dbe379ff85d87c83eb 100644 (file)
@@ -171,7 +171,7 @@ acpi_battery_get_info(struct acpi_battery *battery,
        }
 
       end:
-       acpi_os_free(buffer.pointer);
+       kfree(buffer.pointer);
 
        if (!result)
                (*bif) = (struct acpi_battery_info *)data.pointer;
@@ -231,7 +231,7 @@ acpi_battery_get_status(struct acpi_battery *battery,
        }
 
       end:
-       acpi_os_free(buffer.pointer);
+       kfree(buffer.pointer);
 
        if (!result)
                (*bst) = (struct acpi_battery_status *)data.pointer;