diff options
author | Thomas Renninger <trenn@suse.de> | 2008-10-11 08:15:04 +0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-11 08:15:04 +0400 |
commit | 0a918a9432cc30aede10f904253b66ea6ab485ac (patch) | |
tree | ebf49a5fae83ee5273d8a8f59d1960cf152a96c9 /drivers/acpi/dock.c | |
parent | c5d191b8e531e33b823242f3d2c6b81d765e96dd (diff) | |
download | linux-0a918a9432cc30aede10f904253b66ea6ab485ac.tar.xz |
Subject: ACPI dock: Use ACPI_EXCEPTION instead of printk(KERN_ERR
lenb: stripped patch down to what still applied to new dock.c
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/dock.c')
-rw-r--r-- | drivers/acpi/dock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index b7d15818215c..913bb1e89dd6 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c @@ -488,8 +488,9 @@ static void handle_dock(struct dock_station *ds, int dock) arg.integer.value = dock; status = acpi_evaluate_object(ds->handle, "_DCK", &arg_list, &buffer); if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) - printk(KERN_ERR PREFIX "%s - failed to execute _DCK\n", - (char *)name_buffer.pointer); + ACPI_EXCEPTION((AE_INFO, status, "%s - failed to execute" + " _DCK\n", (char *)name_buffer.pointer)); + kfree(buffer.pointer); kfree(name_buffer.pointer); } |