PCI: Add pci_ops.{add,remove}_bus() callbacks
authorThierry Reding <treding@nvidia.com>
Tue, 9 Feb 2016 14:30:47 +0000 (15:30 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 8 Mar 2016 21:40:37 +0000 (15:40 -0600)
commit057bd2e0528ec68b3d0481ede0b26a31a9e5d2f1
tree625e014188543c4f109a06de166c61b72f64ca7a
parent92e963f50fc74041b5e9e744c330dca48e04f08d
PCI: Add pci_ops.{add,remove}_bus() callbacks

Add pci_ops.{add,remove}_bus() callbacks, which will be called on every
newly created bus and when a bus is being removed, respectively.  This can
be used by drivers to implement driver-specific initialization and teardown
of the bus, in addition to the architecture-specifics implemented by the
pcibios_add_bus() and the pcibios_remove_bus() functions.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c
drivers/pci/remove.c
include/linux/pci.h