diff options
author | Alexander Chiang <achiang@hp.com> | 2009-06-10 21:55:35 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-06-18 05:22:16 +0200 |
commit | 859a3f86ca83346f4097e956d0b27d96aa7a1cff (patch) | |
tree | ba56cc791a0c427ab817a86e57a6338c23bbb3c1 /include/acpi/acpi_drivers.h | |
parent | ACPI: eviscerate pci_bind.c (diff) | |
download | linux-859a3f86ca83346f4097e956d0b27d96aa7a1cff.tar.xz linux-859a3f86ca83346f4097e956d0b27d96aa7a1cff.zip |
ACPI: simplify acpi_pci_irq_add_prt() API
A PCI domain cannot change as you descend down subordinate buses, which
makes the 'segment' argument to acpi_pci_irq_add_prt() useless.
Change the interface to take a struct pci_bus *, from whence we can derive
the bus number and segment. Reducing the number of arguments makes life
simpler for callers.
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/acpi/acpi_drivers.h')
-rw-r--r-- | include/acpi/acpi_drivers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 2740a2894837..686a960bde39 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h @@ -91,7 +91,7 @@ int acpi_pci_link_free_irq(acpi_handle handle); /* ACPI PCI Interrupt Routing (pci_irq.c) */ -int acpi_pci_irq_add_prt(acpi_handle handle, int segment, int bus); +int acpi_pci_irq_add_prt(acpi_handle handle, struct pci_bus *bus); void acpi_pci_irq_del_prt(int segment, int bus); /* ACPI PCI Device Binding (pci_bind.c) */ |