ACPI: simplify acpi_pci_irq_add_prt() API
authorAlexander Chiang <achiang@hp.com>
Wed, 10 Jun 2009 19:55:35 +0000 (19:55 +0000)
committerLen Brown <len.brown@intel.com>
Thu, 18 Jun 2009 03:22:16 +0000 (23:22 -0400)
commit859a3f86ca83346f4097e956d0b27d96aa7a1cff
treeba56cc791a0c427ab817a86e57a6338c23bbb3c1
parent499650de6906722184b639989b47227a362b62f8
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>
drivers/acpi/pci_bind.c
drivers/acpi/pci_irq.c
drivers/acpi/pci_root.c
include/acpi/acpi_drivers.h