driver core: fix namespace issue with devices assigned to classes
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 14 Mar 2007 02:25:56 +0000 (03:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 17:57:28 +0000 (10:57 -0700)
commit864062457a2e444227bd368ca5f2a2b740de604f
tree38e516852ee9825b5ffe0b1f2e8abea0a88b1674
parent00ed8e3dda47f8421b11da17e353d7db8c878121
driver core: fix namespace issue with devices assigned to classes

  - uses a kset in "struct class" to keep track of all directories
    belonging to this class
  - merges with the /sys/devices/virtual logic.
  - removes the namespace-dir if the last member of that class
    leaves the directory.

There may be locking or refcounting fixes left, I stopped when it seemed
to work with network and sound modules. :)

From: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/class.c
drivers/base/core.c
include/linux/device.h
include/linux/kobject.h
lib/kobject.c
lib/kobject_uevent.c