diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh_cache.c b/arch/powerpc/platforms/pseries/eeh_cache.c index 5a4c87903057..5ce3ba7ad137 100644 --- a/arch/powerpc/platforms/pseries/eeh_cache.c +++ b/arch/powerpc/platforms/pseries/eeh_cache.c | |||
@@ -294,8 +294,6 @@ void __init eeh_addr_cache_build(void) | |||
294 | spin_lock_init(&pci_io_addr_cache_root.piar_lock); | 294 | spin_lock_init(&pci_io_addr_cache_root.piar_lock); |
295 | 295 | ||
296 | for_each_pci_dev(dev) { | 296 | for_each_pci_dev(dev) { |
297 | eeh_addr_cache_insert_dev(dev); | ||
298 | |||
299 | dn = pci_device_to_OF_node(dev); | 297 | dn = pci_device_to_OF_node(dev); |
300 | if (!dn) | 298 | if (!dn) |
301 | continue; | 299 | continue; |
@@ -308,6 +306,8 @@ void __init eeh_addr_cache_build(void) | |||
308 | dev->dev.archdata.edev = edev; | 306 | dev->dev.archdata.edev = edev; |
309 | edev->pdev = dev; | 307 | edev->pdev = dev; |
310 | 308 | ||
309 | eeh_addr_cache_insert_dev(dev); | ||
310 | |||
311 | eeh_sysfs_add_device(dev); | 311 | eeh_sysfs_add_device(dev); |
312 | } | 312 | } |
313 | 313 | ||