summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pci_root.c
diff options
context:
space:
mode:
authorAlexander Chiang <achiang@hp.com>2009-06-10 21:55:30 +0200
committerLen Brown <len.brown@intel.com>2009-06-18 05:22:16 +0200
commit499650de6906722184b639989b47227a362b62f8 (patch)
treef0920b27dc659fb976f3ac2ca77bca6a386cd6c0 /drivers/acpi/pci_root.c
parentACPI: rearrange acpi_pci_bind/acpi_pci_unbind in pci_bind.c (diff)
downloadlinux-499650de6906722184b639989b47227a362b62f8.tar.xz
linux-499650de6906722184b639989b47227a362b62f8.zip
ACPI: eviscerate pci_bind.c
Now that we can dynamically convert an ACPI CA handle to a struct pci_dev at runtime, there's no need to statically bind them during boot. acpi_pci_bind/unbind are vastly simplified, and are only used to evaluate _PRT methods on P2P bridges and non-bridge children. This patch also changes the time-space tradeoff ever so slightly. Looking up the ACPI-PCI binding is never in the performance path, and by eliminating this caching, we save 24 bytes for each _ADR device in the ACPI namespace. This patch lays further groundwork to eventually eliminate the acpi_driver_ops.bind callback. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index e5099919e574..f23fcc5c9674 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -603,7 +603,7 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)
* -----------------------
* Thus binding the ACPI and PCI devices.
*/
- result = acpi_pci_bind_root(device, &root->id, root->bus);
+ result = acpi_pci_bind_root(device);
if (result)
goto end;