ACPI: Pass segment/bus to _PRT add/del so they don't depend on pci_bus
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 30 Oct 2012 06:24:06 +0000 (15:24 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 5 Nov 2012 22:54:22 +0000 (15:54 -0700)
commit79c4412298771b8996302806abc8a11e760da9b3
treec2c43b5ddc39a749ec4d48cff023c3d20eb78c28
parentf426cef3bc58806284e0fee55d29262b10279f9c
ACPI: Pass segment/bus to _PRT add/del so they don't depend on pci_bus

This effectively reverts 859a3f86ca8 ("ACPI: simplify
acpi_pci_irq_add_prt() API") and d9efae3688a ("ACPI: simplify
acpi_pci_irq_del_prt() API").

The reason is to disentangle these routines from the struct pci_bus.
We want to be able to add the _PRT before the struct pci_bus
exists, and delete the _PRT after we've removed the pci_bus.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
drivers/acpi/pci_bind.c
drivers/acpi/pci_irq.c
drivers/acpi/pci_root.c
include/acpi/acpi_drivers.h