aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/evdev.c')
-rw-r--r--drivers/input/evdev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index 0b45d475a1c6..a4c3729d3960 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -664,7 +664,7 @@ static int evdev_connect(struct input_handler *handler, struct input_dev *dev,
664 } 664 }
665 665
666 /* temporary symlink to keep userspace happy */ 666 /* temporary symlink to keep userspace happy */
667 error = sysfs_create_link(&input_class.subsys.kset.kobj, 667 error = sysfs_create_link(&input_class.subsys.kobj,
668 &cdev->kobj, evdev->name); 668 &cdev->kobj, evdev->name);
669 if (error) 669 if (error)
670 goto err_cdev_destroy; 670 goto err_cdev_destroy;
@@ -676,7 +676,7 @@ static int evdev_connect(struct input_handler *handler, struct input_dev *dev,
676 return 0; 676 return 0;
677 677
678 err_remove_link: 678 err_remove_link:
679 sysfs_remove_link(&input_class.subsys.kset.kobj, evdev->name); 679 sysfs_remove_link(&input_class.subsys.kobj, evdev->name);
680 err_cdev_destroy: 680 err_cdev_destroy:
681 class_device_destroy(&input_class, devt); 681 class_device_destroy(&input_class, devt);
682 err_free_evdev: 682 err_free_evdev:
@@ -692,7 +692,7 @@ static void evdev_disconnect(struct input_handle *handle)
692 692
693 input_unregister_handle(handle); 693 input_unregister_handle(handle);
694 694
695 sysfs_remove_link(&input_class.subsys.kset.kobj, evdev->name); 695 sysfs_remove_link(&input_class.subsys.kobj, evdev->name);
696 class_device_destroy(&input_class, 696 class_device_destroy(&input_class,
697 MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + evdev->minor)); 697 MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + evdev->minor));
698 evdev->exist = 0; 698 evdev->exist = 0;