Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358415
b: refs/heads/master
c: 121b090
h: refs/heads/master
i:
  358413: 491fc65
  358411: 2fb83f0
  358407: 3cdc9fb
  358399: 13c6cfd
v: v3
  • Loading branch information
Tang Chen authored and Bjorn Helgaas committed Jan 25, 2013
1 parent ab82966 commit 9a40fae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: 668192b678201d2fff27c6cc76bb003c1ec4a52a
refs/heads/master: 121b090e7d4063b65f40c267ef0fb34fb278dfdf
12 changes: 9 additions & 3 deletions trunk/drivers/acpi/pci_root.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ static void handle_hotplug_event_root(acpi_handle handle, u32 type,
static acpi_status __init
find_root_bridges(acpi_handle handle, u32 lvl, void *context, void **rv)
{
acpi_status status;
char objname[64];
struct acpi_buffer buffer = { .length = sizeof(objname),
.pointer = objname };
Expand All @@ -781,9 +782,14 @@ find_root_bridges(acpi_handle handle, u32 lvl, void *context, void **rv)

acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer);

acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY,
handle_hotplug_event_root, NULL);
printk(KERN_DEBUG "acpi root: %s notify handler installed\n", objname);
status = acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY,
handle_hotplug_event_root, NULL);
if (ACPI_FAILURE(status))
printk(KERN_DEBUG "acpi root: %s notify handler is not installed, exit status: %u\n",
objname, (unsigned int)status);
else
printk(KERN_DEBUG "acpi root: %s notify handler is installed\n",
objname);

return AE_OK;
}
Expand Down

0 comments on commit 9a40fae

Please sign in to comment.