ACPI: eviscerate pci_bind.c
authorAlexander Chiang <achiang@hp.com>
Wed, 10 Jun 2009 19:55:30 +0000 (19:55 +0000)
committerLen Brown <len.brown@intel.com>
Thu, 18 Jun 2009 03:22:16 +0000 (23:22 -0400)
commit499650de6906722184b639989b47227a362b62f8
treef0920b27dc659fb976f3ac2ca77bca6a386cd6c0
parentc22d7f5a389dad15de448b142f44e4000b3426f0
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>
drivers/acpi/pci_bind.c
drivers/acpi/pci_root.c
include/acpi/acpi_drivers.h