diff options
author | Rob Herring <robh@kernel.org> | 2020-07-22 04:25:05 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2020-07-23 12:20:50 +0200 |
commit | 6176a5f32751b9531980a2f23dca73d597d182e6 (patch) | |
tree | ec03f6c772173680a72865331f23a987cfef223c /drivers/pci/controller/pci-host-common.c | |
parent | PCI: rockchip: Use pci_is_root_bus() to check if bus is root bus (diff) | |
download | linux-6176a5f32751b9531980a2f23dca73d597d182e6.tar.xz linux-6176a5f32751b9531980a2f23dca73d597d182e6.zip |
PCI: rcar: 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-11-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: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-renesas-soc@vger.kernel.org
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions