Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a378fd0ee8ea6af5dafd0ab3d634f22b926b5ac4
Commit:     a378fd0ee8ea6af5dafd0ab3d634f22b926b5ac4
Parent:     bc606f3c917aa453fca62b76c8e9998b4171f4fa
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 1 11:46:13 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu Apr 26 01:55:09 2007 -0700

    [SPARC64]: Fix obppath pci device sysfs creation.
    
    Need to traverse recursively down child busses else we only
    get the file created under devices at the top-level.
    
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 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 ec0d12a..425e883 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
 static void __devinit pci_bus_register_of_sysfs(struct pci_bus *bus)
 {
        struct pci_dev *dev;
+       struct pci_bus *child_bus;
        int err;
 
        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)
                 */
                err = sysfs_create_file(&dev->dev.kobj, &dev_attr_obppath.attr);
        }
+       list_for_each_entry(child_bus, &bus->children, node)
+               pci_bus_register_of_sysfs(child_bus);
 }
 
 struct pci_bus * __init pci_scan_one_pbm(struct pci_pbm_info *pbm)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to