Commit 0a918a94 authored by Thomas Renninger's avatar Thomas Renninger Committed by Len Brown

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: default avatarThomas Renninger <trenn@suse.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent c5d191b8
...@@ -488,8 +488,9 @@ static void handle_dock(struct dock_station *ds, int dock) ...@@ -488,8 +488,9 @@ static void handle_dock(struct dock_station *ds, int dock)
arg.integer.value = dock; arg.integer.value = dock;
status = acpi_evaluate_object(ds->handle, "_DCK", &arg_list, &buffer); status = acpi_evaluate_object(ds->handle, "_DCK", &arg_list, &buffer);
if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
printk(KERN_ERR PREFIX "%s - failed to execute _DCK\n", ACPI_EXCEPTION((AE_INFO, status, "%s - failed to execute"
(char *)name_buffer.pointer); " _DCK\n", (char *)name_buffer.pointer));
kfree(buffer.pointer); kfree(buffer.pointer);
kfree(name_buffer.pointer); kfree(name_buffer.pointer);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment