Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336696
b: refs/heads/master
c: 3d78bd9
h: refs/heads/master
v: v3
  • Loading branch information
Toshi Kani authored and Rafael J. Wysocki committed Nov 21, 2012
1 parent 1f87805 commit de6e07a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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: ab6c57099db14d64c383e4d0392eab05d013630f
refs/heads/master: 3d78bd9ef746d6468b1dbb2518b1287092b997b5
10 changes: 2 additions & 8 deletions trunk/drivers/acpi/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@ static int acpi_container_add(struct acpi_device *device)
{
struct acpi_container *container;


if (!device) {
printk(KERN_ERR PREFIX "device is NULL\n");
return -EINVAL;
}

container = kzalloc(sizeof(struct acpi_container), GFP_KERNEL);
if (!container)
return -ENOMEM;
Expand Down Expand Up @@ -177,7 +171,7 @@ static void container_notify_cb(acpi_handle handle, u32 type, void *context)
case ACPI_NOTIFY_BUS_CHECK:
/* Fall through */
case ACPI_NOTIFY_DEVICE_CHECK:
printk(KERN_WARNING "Container driver received %s event\n",
pr_debug("Container driver received %s event\n",
(type == ACPI_NOTIFY_BUS_CHECK) ?
"ACPI_NOTIFY_BUS_CHECK" : "ACPI_NOTIFY_DEVICE_CHECK");

Expand All @@ -198,7 +192,7 @@ static void container_notify_cb(acpi_handle handle, u32 type, void *context)

result = container_device_add(&device, handle);
if (result) {
printk(KERN_WARNING "Failed to add container\n");
acpi_handle_warn(handle, "Failed to add container\n");
break;
}

Expand Down

0 comments on commit de6e07a

Please sign in to comment.