diff options
Diffstat (limited to 'drivers/input/evdev.c')
-rw-r--r-- | drivers/input/evdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 6439f378f6cc..6e55b2c5874e 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c | |||
@@ -650,7 +650,7 @@ static struct input_handle *evdev_connect(struct input_handler *handler, struct | |||
650 | dev->cdev.dev, evdev->name); | 650 | dev->cdev.dev, evdev->name); |
651 | 651 | ||
652 | /* temporary symlink to keep userspace happy */ | 652 | /* temporary symlink to keep userspace happy */ |
653 | sysfs_create_link(&input_class.subsys.kset.kobj, &cdev->kobj, | 653 | sysfs_create_link(&input_class.subsys.kobj, &cdev->kobj, |
654 | evdev->name); | 654 | evdev->name); |
655 | 655 | ||
656 | return &evdev->handle; | 656 | return &evdev->handle; |
@@ -661,7 +661,7 @@ static void evdev_disconnect(struct input_handle *handle) | |||
661 | struct evdev *evdev = handle->private; | 661 | struct evdev *evdev = handle->private; |
662 | struct evdev_list *list; | 662 | struct evdev_list *list; |
663 | 663 | ||
664 | sysfs_remove_link(&input_class.subsys.kset.kobj, evdev->name); | 664 | sysfs_remove_link(&input_class.subsys.kobj, evdev->name); |
665 | class_device_destroy(&input_class, | 665 | class_device_destroy(&input_class, |
666 | MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + evdev->minor)); | 666 | MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + evdev->minor)); |
667 | evdev->exist = 0; | 667 | evdev->exist = 0; |