remove "struct subsystem" as it is no longer needed
We need to work on cleaning up the relationship between kobjects, ksets and ktypes. The removal of 'struct subsystem' is the first step of this, especially as it is not really needed at all. Thanks to Kay for fixing the bugs in this patch. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
2609e7b9be
commit
823bccfc40
46 changed files with 231 additions and 292 deletions
|
|
@ -650,7 +650,7 @@ static struct input_handle *evdev_connect(struct input_handler *handler, struct
|
|||
dev->cdev.dev, evdev->name);
|
||||
|
||||
/* temporary symlink to keep userspace happy */
|
||||
sysfs_create_link(&input_class.subsys.kset.kobj, &cdev->kobj,
|
||||
sysfs_create_link(&input_class.subsys.kobj, &cdev->kobj,
|
||||
evdev->name);
|
||||
|
||||
return &evdev->handle;
|
||||
|
|
@ -661,7 +661,7 @@ static void evdev_disconnect(struct input_handle *handle)
|
|||
struct evdev *evdev = handle->private;
|
||||
struct evdev_list *list;
|
||||
|
||||
sysfs_remove_link(&input_class.subsys.kset.kobj, evdev->name);
|
||||
sysfs_remove_link(&input_class.subsys.kobj, evdev->name);
|
||||
class_device_destroy(&input_class,
|
||||
MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + evdev->minor));
|
||||
evdev->exist = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue