PCI: Also call .add_bus() callback for root bus
authorRob Herring <robh@kernel.org>
Fri, 21 Aug 2020 03:53:54 +0000 (21:53 -0600)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 8 Sep 2020 15:37:02 +0000 (16:37 +0100)
commit6e8e104d21962177b26149643e66a8af0099734c
treebfa0295923890f4156193276ac2ea545c9dde907
parentc2b0c098fbd15da06f5c6c70ecc9b156fdc0eedd
PCI: Also call .add_bus() callback for root bus

Similar to pcibios_add_bus(), call pci_ops.add_bus() when the root bus
is added. This allows host bridge drivers to do any setup requiring a
bus pointer.

There are currently no .add_bus() callbacks, so this is safe to do.

Link: https://lore.kernel.org/r/20200821035420.380495-15-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c