PCI/ERR: Simplify by using pci_upstream_bridge()
authorSean V Kelley <sean.v.kelley@intel.com>
Sat, 21 Nov 2020 00:10:26 +0000 (16:10 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Dec 2020 17:18:58 +0000 (11:18 -0600)
commit5d69dcc9f839bd2d5cac7a098712f52149e1673f
tree2601e6cb60db21501c7ba491ba1f755b2cc51190
parent8f1bbfbc3596d401b60d1562b27ec28c2724f60d
PCI/ERR: Simplify by using pci_upstream_bridge()

Use pci_upstream_bridge() in place of dev->bus->self.  No functional change
intended.

Link: https://lore.kernel.org/r/20201121001036.8560-6-sean.v.kelley@intel.com
Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # non-native/no RCEC
Signed-off-by: Sean V Kelley <sean.v.kelley@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/pci/pcie/err.c