MIPS: Use !pci_is_root_bus(bus) in ops-bridge.c
authorJoshua Kinard <kumba@gentoo.org>
Tue, 17 Oct 2017 18:26:12 +0000 (14:26 -0400)
committerPaul Burton <paul.burton@mips.com>
Sun, 24 Jun 2018 16:27:27 +0000 (09:27 -0700)
commit8fd2d6ea66272f849943269c7ea771ce85fd8fb1
tree9c2eabd2a77b4bc701621759ad7e5d1d85dd1f01
parent8c8d953c28000045e5e823f3398319f04d49a7f1
MIPS: Use !pci_is_root_bus(bus) in ops-bridge.c

This is a manual cherrypick of commit c7ddc3d137b7 from Alastair
Bridgewater's IP35 tree that replaces two cases of
"if (bus->number > 0)" with a more correct "if (!pci_is_root_bus(bus))"
in arch/mips/pci/ops-bridge.c.

Cc: linux-mips@linux-mips.org
Cc: Alastair Bridgewater <alastair.bridgewater@gmail.com>
Suggested-by: Alastair Bridgewater <alastair.bridgewater@gmail.com>
Signed-off-by: Joshua Kinard <kumba@gentoo.org>
Patchwork: https://patchwork.linux-mips.org/patch/17501/
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Linux/MIPS <linux-mips@linux-mips.org>
arch/mips/pci/ops-bridge.c