• Alexander Chiang's avatar
    ACPI: eviscerate pci_bind.c · 499650de
    Alexander Chiang authored
    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: default avatarAlex Chiang <achiang@hp.com>
    Acked-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    499650de
acpi_drivers.h 5.31 KB