diff options
Diffstat (limited to 'drivers/input/mousedev.c')
-rw-r--r-- | drivers/input/mousedev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index 3b8011c56c86..7678e9876550 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c | |||
@@ -724,7 +724,7 @@ static int mousedev_connect(struct input_handler *handler, struct input_dev *dev | |||
724 | } | 724 | } |
725 | 725 | ||
726 | /* temporary symlink to keep userspace happy */ | 726 | /* temporary symlink to keep userspace happy */ |
727 | error = sysfs_create_link(&input_class.subsys.kset.kobj, | 727 | error = sysfs_create_link(&input_class.subsys.kobj, |
728 | &cdev->kobj, mousedev->name); | 728 | &cdev->kobj, mousedev->name); |
729 | if (error) | 729 | if (error) |
730 | goto err_cdev_destroy; | 730 | goto err_cdev_destroy; |
@@ -742,7 +742,7 @@ static int mousedev_connect(struct input_handler *handler, struct input_dev *dev | |||
742 | err_unregister_handle: | 742 | err_unregister_handle: |
743 | input_unregister_handle(&mousedev->handle); | 743 | input_unregister_handle(&mousedev->handle); |
744 | err_remove_link: | 744 | err_remove_link: |
745 | sysfs_remove_link(&input_class.subsys.kset.kobj, mousedev->name); | 745 | sysfs_remove_link(&input_class.subsys.kobj, mousedev->name); |
746 | err_cdev_destroy: | 746 | err_cdev_destroy: |
747 | class_device_destroy(&input_class, devt); | 747 | class_device_destroy(&input_class, devt); |
748 | err_free_mousedev: | 748 | err_free_mousedev: |
@@ -758,7 +758,7 @@ static void mousedev_disconnect(struct input_handle *handle) | |||
758 | 758 | ||
759 | input_unregister_handle(handle); | 759 | input_unregister_handle(handle); |
760 | 760 | ||
761 | sysfs_remove_link(&input_class.subsys.kset.kobj, mousedev->name); | 761 | sysfs_remove_link(&input_class.subsys.kobj, mousedev->name); |
762 | class_device_destroy(&input_class, | 762 | class_device_destroy(&input_class, |
763 | MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + mousedev->minor)); | 763 | MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + mousedev->minor)); |
764 | mousedev->exist = 0; | 764 | mousedev->exist = 0; |