Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324270
b: refs/heads/master
c: cd4faf9
h: refs/heads/master
v: v3
  • Loading branch information
Taku Izumi authored and Bjorn Helgaas committed Sep 24, 2012
1 parent 894201c commit 22815c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 6507e6ebebd2d5f7e17c6f2e32524270edd2a922
refs/heads/master: cd4faf9c34b27cbb6bcc70a4f1d1759f2e6fa7fd
13 changes: 8 additions & 5 deletions trunk/drivers/acpi/pci_root.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,15 @@ static acpi_status acpi_pci_osc_support(struct acpi_pci_root *root, u32 flags)
struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle)
{
struct acpi_pci_root *root;
struct acpi_device *device;

list_for_each_entry(root, &acpi_pci_roots, node) {
if (root->device->handle == handle)
return root;
}
return NULL;
if (acpi_bus_get_device(handle, &device) ||
acpi_match_device_ids(device, root_device_ids))
return NULL;

root = acpi_driver_data(device);

return root;
}
EXPORT_SYMBOL_GPL(acpi_pci_find_root);

Expand Down

0 comments on commit 22815c6

Please sign in to comment.