Driver core: struct class remove children list

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>


authored by Dave Young and committed by Greg Kroah-Hartman 0a3ad00c 30f2f0eb

-2
-1
drivers/base/class.c
··· 140 141 pr_debug("device class '%s': registering\n", cls->name); 142 143 - INIT_LIST_HEAD(&cls->children); 144 INIT_LIST_HEAD(&cls->devices); 145 INIT_LIST_HEAD(&cls->interfaces); 146 kset_init(&cls->class_dirs);
··· 140 141 pr_debug("device class '%s': registering\n", cls->name); 142 143 INIT_LIST_HEAD(&cls->devices); 144 INIT_LIST_HEAD(&cls->interfaces); 145 kset_init(&cls->class_dirs);
-1
include/linux/device.h
··· 183 struct module *owner; 184 185 struct kset subsys; 186 - struct list_head children; 187 struct list_head devices; 188 struct list_head interfaces; 189 struct kset class_dirs;
··· 183 struct module *owner; 184 185 struct kset subsys; 186 struct list_head devices; 187 struct list_head interfaces; 188 struct kset class_dirs;