Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128044
b: refs/heads/master
c: 3082373
h: refs/heads/master
v: v3
  • Loading branch information
Lin Ming authored and Len Brown committed Dec 31, 2008
1 parent 98770cc commit d231dd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3d97e426aa97d60b3dac1b72923b90b491fbac20
refs/heads/master: 30823736162ff91512965e3c730557e34fa71d6d
15 changes: 9 additions & 6 deletions trunk/drivers/misc/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,14 +935,17 @@ static void sony_acpi_notify(acpi_handle handle, u32 event, void *data)
static acpi_status sony_walk_callback(acpi_handle handle, u32 level,
void *context, void **return_value)
{
struct acpi_namespace_node *node;
union acpi_operand_object *operand;
struct acpi_device_info *info;
struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER, NULL};

node = (struct acpi_namespace_node *)handle;
operand = (union acpi_operand_object *)node->object;
if (ACPI_SUCCESS(acpi_get_object_info(handle, &buffer))) {
info = buffer.pointer;

printk(KERN_WARNING DRV_PFX "method: name: %4.4s, args %X\n", node->name.ascii,
(u32) operand->method.param_count);
printk(KERN_WARNING DRV_PFX "method: name: %4.4s, args %X\n",
(char *)&info->name, info->param_count);

kfree(buffer.pointer);
}

return AE_OK;
}
Expand Down

0 comments on commit d231dd7

Please sign in to comment.