diff options
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 408ebde18986..75b7c572ef45 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -1230,6 +1230,7 @@ acpi_add_single_object(struct acpi_device **child, | |||
1230 | { | 1230 | { |
1231 | int result = 0; | 1231 | int result = 0; |
1232 | struct acpi_device *device = NULL; | 1232 | struct acpi_device *device = NULL; |
1233 | struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; | ||
1233 | 1234 | ||
1234 | 1235 | ||
1235 | if (!child) | 1236 | if (!child) |
@@ -1355,9 +1356,16 @@ acpi_add_single_object(struct acpi_device **child, | |||
1355 | } | 1356 | } |
1356 | 1357 | ||
1357 | end: | 1358 | end: |
1358 | if (!result) | 1359 | if (!result) { |
1360 | acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer); | ||
1361 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | ||
1362 | "Adding %s [%s] parent %s\n", dev_name(&device->dev), | ||
1363 | (char *) buffer.pointer, | ||
1364 | device->parent ? dev_name(&device->parent->dev) : | ||
1365 | "(null)")); | ||
1366 | kfree(buffer.pointer); | ||
1359 | *child = device; | 1367 | *child = device; |
1360 | else | 1368 | } else |
1361 | acpi_device_release(&device->dev); | 1369 | acpi_device_release(&device->dev); |
1362 | 1370 | ||
1363 | return result; | 1371 | return result; |