diff options
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/kernel/pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index ec0d12a48c2b..425e883e7e3b 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c | |||
@@ -585,6 +585,7 @@ static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, show_pciobppath_attr, N | |||
585 | static void __devinit pci_bus_register_of_sysfs(struct pci_bus *bus) | 585 | static void __devinit pci_bus_register_of_sysfs(struct pci_bus *bus) |
586 | { | 586 | { |
587 | struct pci_dev *dev; | 587 | struct pci_dev *dev; |
588 | struct pci_bus *child_bus; | ||
588 | int err; | 589 | int err; |
589 | 590 | ||
590 | list_for_each_entry(dev, &bus->devices, bus_list) { | 591 | list_for_each_entry(dev, &bus->devices, bus_list) { |
@@ -597,6 +598,8 @@ static void __devinit pci_bus_register_of_sysfs(struct pci_bus *bus) | |||
597 | */ | 598 | */ |
598 | err = sysfs_create_file(&dev->dev.kobj, &dev_attr_obppath.attr); | 599 | err = sysfs_create_file(&dev->dev.kobj, &dev_attr_obppath.attr); |
599 | } | 600 | } |
601 | list_for_each_entry(child_bus, &bus->children, node) | ||
602 | pci_bus_register_of_sysfs(child_bus); | ||
600 | } | 603 | } |
601 | 604 | ||
602 | struct pci_bus * __init pci_scan_one_pbm(struct pci_pbm_info *pbm) | 605 | struct pci_bus * __init pci_scan_one_pbm(struct pci_pbm_info *pbm) |