• Greg Kroah-Hartman's avatar
    PCI: fix issue with busses registering multiple times in sysfs · cc74d96f
    Greg Kroah-Hartman authored
    PCI busses can be registered multiple times, so we need to detect if we
    have registered our bus structure in sysfs already.  If so, don't do it
    again.
    
    Thanks to Guennadi Liakhovetski <g.liakhovetski@gmx.de> for reporting
    the problem, and to Linus for poking me to get me to believe that it was
    a real problem.
    
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    cc74d96f
bus.c 5.75 KB