mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
powerpc/pseries/eeh: Use for_each_pci_dev()
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>
This commit is contained in:
parent
4455b1191c
commit
6901c6cca1
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue