Skip to content

Commit

Permalink
Driver core: struct class remove children list
Browse files Browse the repository at this point in the history
because of the class_device was removed, now do the children list removing

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Dave Young authored and Greg Kroah-Hartman committed May 14, 2008
1 parent 30f2f0e commit 0a3ad00
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/base/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ int class_register(struct class *cls)

pr_debug("device class '%s': registering\n", cls->name);

INIT_LIST_HEAD(&cls->children);
INIT_LIST_HEAD(&cls->devices);
INIT_LIST_HEAD(&cls->interfaces);
kset_init(&cls->class_dirs);
Expand Down
1 change: 0 additions & 1 deletion include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ struct class {
struct module *owner;

struct kset subsys;
struct list_head children;
struct list_head devices;
struct list_head interfaces;
struct kset class_dirs;
Expand Down

0 comments on commit 0a3ad00

Please sign in to comment.