diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/acpi/pci_root.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 1389811aa21b..fd59f57d3829 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
| @@ -769,6 +769,7 @@ static void handle_hotplug_event_root(acpi_handle handle, u32 type, | |||
| 769 | static acpi_status __init | 769 | static acpi_status __init |
| 770 | find_root_bridges(acpi_handle handle, u32 lvl, void *context, void **rv) | 770 | find_root_bridges(acpi_handle handle, u32 lvl, void *context, void **rv) |
| 771 | { | 771 | { |
| 772 | acpi_status status; | ||
| 772 | char objname[64]; | 773 | char objname[64]; |
| 773 | struct acpi_buffer buffer = { .length = sizeof(objname), | 774 | struct acpi_buffer buffer = { .length = sizeof(objname), |
| 774 | .pointer = objname }; | 775 | .pointer = objname }; |
| @@ -781,9 +782,14 @@ find_root_bridges(acpi_handle handle, u32 lvl, void *context, void **rv) | |||
| 781 | 782 | ||
| 782 | acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer); | 783 | acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer); |
| 783 | 784 | ||
| 784 | acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY, | 785 | status = acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY, |
| 785 | handle_hotplug_event_root, NULL); | 786 | handle_hotplug_event_root, NULL); |
| 786 | printk(KERN_DEBUG "acpi root: %s notify handler installed\n", objname); | 787 | if (ACPI_FAILURE(status)) |
| 788 | printk(KERN_DEBUG "acpi root: %s notify handler is not installed, exit status: %u\n", | ||
| 789 | objname, (unsigned int)status); | ||
| 790 | else | ||
| 791 | printk(KERN_DEBUG "acpi root: %s notify handler is installed\n", | ||
| 792 | objname); | ||
| 787 | 793 | ||
| 788 | return AE_OK; | 794 | return AE_OK; |
| 789 | } | 795 | } |
