MIPS: PCI: use list_for_each_entry() for bus->devices traversal
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Dec 2011 22:31:39 +0000 (15:31 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 20 Feb 2012 17:33:19 +0000 (18:33 +0100)
commitf79eaeb108499e10fa604103737e7273404e76a4
tree785b007afc5cdd49e145e292faee12a051243597
parent43ca4957a15a120d0822a60a22998dbb41bbf075
MIPS: PCI: use list_for_each_entry() for bus->devices traversal

Replace open-coded list traversal with list_for_each_entry().

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3200/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci.c
arch/mips/pmc-sierra/yosemite/ht-irq.c