Skip to content

Commit

Permalink
powerpc/pseries/eeh: Use for_each_pci_dev()
Browse files Browse the repository at this point in the history
Use for_each_pci_dev() to simplify the code.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Kulikov Vasiliy authored and Benjamin Herrenschmidt committed Jul 9, 2010
1 parent 4455b11 commit 6901c6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/powerpc/platforms/pseries/eeh_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ void __init pci_addr_cache_build(void)

spin_lock_init(&pci_io_addr_cache_root.piar_lock);

while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {

for_each_pci_dev(dev) {
pci_addr_cache_insert_device(dev);

dn = pci_device_to_OF_node(dev);
Expand Down

0 comments on commit 6901c6c

Please sign in to comment.