diff options
| author | Dave Young <hidave.darkstar@gmail.com> | 2008-05-09 03:24:08 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-05-14 13:37:58 -0400 |
| commit | 0a3ad00ca09632c6d0675f606276e92bdf1b306c (patch) | |
| tree | a164d56118136d8f53be9f64afa41dc42fb7ad93 | |
| parent | 30f2f0eb4bd2c43d10a8b0d872c6e5ad8f31c9a0 (diff) | |
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>
| -rw-r--r-- | drivers/base/class.c | 1 | ||||
| -rw-r--r-- | include/linux/device.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c index 0ef00e8d4153..e085af0ff94f 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c | |||
| @@ -140,7 +140,6 @@ int class_register(struct class *cls) | |||
| 140 | 140 | ||
| 141 | pr_debug("device class '%s': registering\n", cls->name); | 141 | pr_debug("device class '%s': registering\n", cls->name); |
| 142 | 142 | ||
| 143 | INIT_LIST_HEAD(&cls->children); | ||
| 144 | INIT_LIST_HEAD(&cls->devices); | 143 | INIT_LIST_HEAD(&cls->devices); |
| 145 | INIT_LIST_HEAD(&cls->interfaces); | 144 | INIT_LIST_HEAD(&cls->interfaces); |
| 146 | kset_init(&cls->class_dirs); | 145 | kset_init(&cls->class_dirs); |
diff --git a/include/linux/device.h b/include/linux/device.h index 8c23e3dfe3ac..15e9fa3ad3af 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -183,7 +183,6 @@ struct class { | |||
| 183 | struct module *owner; | 183 | struct module *owner; |
| 184 | 184 | ||
| 185 | struct kset subsys; | 185 | struct kset subsys; |
| 186 | struct list_head children; | ||
| 187 | struct list_head devices; | 186 | struct list_head devices; |
| 188 | struct list_head interfaces; | 187 | struct list_head interfaces; |
| 189 | struct kset class_dirs; | 188 | struct kset class_dirs; |
