diff options
author | Alexander Chiang <achiang@hp.com> | 2009-06-10 21:55:20 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-06-18 05:22:15 +0200 |
commit | 2f7bbceb5b6aa938024bb4dad93c410fa59ed3b9 (patch) | |
tree | f34fa26ac7a916f221dc88a5cb32eaf5db7c0e05 /include | |
parent | ACPI: Introduce acpi_is_root_bridge() (diff) | |
download | linux-2f7bbceb5b6aa938024bb4dad93c410fa59ed3b9.tar.xz linux-2f7bbceb5b6aa938024bb4dad93c410fa59ed3b9.zip |
ACPI: Introduce acpi_get_pci_dev()
Convert an ACPI CA handle to a struct pci_dev.
Performing this lookup dynamically allows us to get rid of the
ACPI-PCI binding code, which:
- eliminates struct acpi_device vs struct pci_dev lifetime issues
- lays more groundwork for eliminating .start from acpi_device_ops
and thus simplifying ACPI drivers
- whacks out a lot of code
This change lays the groundwork for eliminating much of pci_bind.c.
Although pci_root.c may not be the most logical place for this
change, putting it here saves us from having to export acpi_pci_find_root.
Signed-off-by: Alex Chiang <achiang@hp.com>
Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/acpi/acpi_drivers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 7a2ce53146aa..dbe3989952ee 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h @@ -98,6 +98,7 @@ void acpi_pci_irq_del_prt(int segment, int bus); struct pci_bus; +struct pci_dev *acpi_get_pci_dev(acpi_handle); acpi_status acpi_get_pci_id(acpi_handle handle, struct acpi_pci_id *id); int acpi_pci_bind_root(struct acpi_device *device, struct acpi_pci_id *id, struct pci_bus *bus); |