summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-designware-host.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2020-07-22 04:24:59 +0200
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-07-23 12:20:50 +0200
commit11e97973607fab2131be2a378c7da90a9729cc21 (patch)
treea322ac6cb20e85645753e5fb95f2c40e2c50ba7c /drivers/pci/controller/dwc/pcie-designware-host.c
parentPCI: Drop unnecessary zeroing of bridge fields (diff)
downloadlinux-11e97973607fab2131be2a378c7da90a9729cc21.tar.xz
linux-11e97973607fab2131be2a378c7da90a9729cc21.zip
PCI: aardvark: Use pci_is_root_bus() to check if bus is root bus
Use pci_is_root_bus() rather than tracking the root bus number to determine if the bus is the root bus or not. This removes storing duplicated data as well as the need for the host bridge driver to have to care about the bus numbers in most cases. Link: https://lore.kernel.org/r/20200722022514.1283916-5-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-designware-host.c')
0 files changed, 0 insertions, 0 deletions