diff options
author | Alexander Chiang <achiang@hp.com> | 2009-06-10 15:55:35 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-06-17 23:22:16 -0400 |
commit | 859a3f86ca83346f4097e956d0b27d96aa7a1cff (patch) | |
tree | ba56cc791a0c427ab817a86e57a6338c23bbb3c1 /drivers/acpi/pci_root.c | |
parent | 499650de6906722184b639989b47227a362b62f8 (diff) |
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 'drivers/acpi/pci_root.c')
-rw-r--r-- | drivers/acpi/pci_root.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index f23fcc5c9674..f341b0756c9e 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
@@ -614,8 +614,7 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device) | |||
614 | */ | 614 | */ |
615 | status = acpi_get_handle(device->handle, METHOD_NAME__PRT, &handle); | 615 | status = acpi_get_handle(device->handle, METHOD_NAME__PRT, &handle); |
616 | if (ACPI_SUCCESS(status)) | 616 | if (ACPI_SUCCESS(status)) |
617 | result = acpi_pci_irq_add_prt(device->handle, root->id.segment, | 617 | result = acpi_pci_irq_add_prt(device->handle, root->bus); |
618 | root->id.bus); | ||
619 | 618 | ||
620 | /* | 619 | /* |
621 | * Scan and bind all _ADR-Based Devices | 620 | * Scan and bind all _ADR-Based Devices |