Commit 0a3ad00c authored by Dave Young's avatar Dave Young Committed by Greg Kroah-Hartman
Browse files

Driver core: struct class remove children list



because of the class_device was removed, now do the children list removing
Signed-off-by: default avatarDave Young <hidave.darkstar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 30f2f0eb
...@@ -140,7 +140,6 @@ int class_register(struct class *cls) ...@@ -140,7 +140,6 @@ int class_register(struct class *cls)
pr_debug("device class '%s': registering\n", cls->name); pr_debug("device class '%s': registering\n", cls->name);
INIT_LIST_HEAD(&cls->children);
INIT_LIST_HEAD(&cls->devices); INIT_LIST_HEAD(&cls->devices);
INIT_LIST_HEAD(&cls->interfaces); INIT_LIST_HEAD(&cls->interfaces);
kset_init(&cls->class_dirs); kset_init(&cls->class_dirs);
......
...@@ -183,7 +183,6 @@ struct class { ...@@ -183,7 +183,6 @@ struct class {
struct module *owner; struct module *owner;
struct kset subsys; struct kset subsys;
struct list_head children;
struct list_head devices; struct list_head devices;
struct list_head interfaces; struct list_head interfaces;
struct kset class_dirs; struct kset class_dirs;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment