diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2010-03-11 20:20:11 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-04-04 06:29:53 +0200 |
commit | 57283776b2b821ba4d592f61cad04d0293412740 (patch) | |
tree | ba4f2df20e9433767d2dd818c8e540c7a6741961 /arch/ia64/pci | |
parent | ACPI: pci_root: save downstream bus range (diff) | |
download | linux-57283776b2b821ba4d592f61cad04d0293412740.tar.xz linux-57283776b2b821ba4d592f61cad04d0293412740.zip |
ACPI: pci_root: pass acpi_pci_root to arch-specific scan
The acpi_pci_root structure contains all the individual items (acpi_device,
domain, bus number) we pass to pci_acpi_scan_root(), so just pass the
single acpi_pci_root pointer directly.
This will make it easier to add _CBA support later. For _CBA, we need the
entire downstream bus range, not just the base bus number. We have that in
the acpi_pci_root structure, so passing the pointer makes it available to
the arch-specific code.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch/ia64/pci')
-rw-r--r-- | arch/ia64/pci/pci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index 64aff520b899..aa2533ae7e9e 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c @@ -335,8 +335,11 @@ pcibios_setup_root_windows(struct pci_bus *bus, struct pci_controller *ctrl) } struct pci_bus * __devinit -pci_acpi_scan_root(struct acpi_device *device, int domain, int bus) +pci_acpi_scan_root(struct acpi_pci_root *root) { + struct acpi_device *device = root->device; + int domain = root->segment; + int bus = root->secondary.start; struct pci_controller *controller; unsigned int windows = 0; struct pci_bus *pbus; |