sgi-agp: Use list_for_each_entry() for bus->devices traversal
commit0a4af1473a7d81fc90e195fb5b241ab5fcf933ca
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 16 Aug 2012 22:46:08 +0000 (16 16:46 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 22 Aug 2012 17:34:38 +0000 (22 11:34 -0600)
treee50e3a65fd1b3ce0e3bcade67ff6b4cae9f8c641
parent0b79ca2a800d1a2ed0386886c8358217f3371592
sgi-agp: Use list_for_each_entry() for bus->devices traversal

Replace list_for_each() + pci_dev_b() with the simpler
list_for_each_entry().

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
CC: David Airlie <airlied@linux.ie>
drivers/char/agp/sgi-agp.c