PCI: tegra: Use new pci_register_host_bridge() interface
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 Nov 2016 10:57:12 +0000 (11:57 +0100)
committerBjorn Helgaas <helgaas@kernel.org>
Wed, 7 Dec 2016 18:06:17 +0000 (12:06 -0600)
commit76f254149171a93e676139b53fcc83043d55a047
tree97e93fc19498fd4e5751308569ba68cebc163723
parenta52d1443bba1db98907521414727eee22ae8c380
PCI: tegra: Use new pci_register_host_bridge() interface

Tegra is one of the remaining platforms that still use the traditional
pci_common_init_dev() interface for probing PCI host bridges.

This demonstrates how to convert it to the pci_register_host interface I
just added in a previous patch. This leads to a more linear probe sequence
that can handle errors better because we avoid callbacks into the driver,
and it makes the driver architecture independent.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
drivers/pci/host/pci-tegra.c