Selaa lähdekoodia

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>
Dave Young 17 vuotta sitten
vanhempi
commit
0a3ad00ca0
2 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 1
      drivers/base/class.c
  2. 0 1
      include/linux/device.h

+ 0 - 1
drivers/base/class.c

@@ -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);

+ 0 - 1
include/linux/device.h

@@ -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;