aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/evdev.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2007-05-08 01:31:11 -0400
committerDmitry Torokhov <dtor@insightbb.com>2007-05-08 01:31:11 -0400
commit334d0dd8b660557608142f0f77abc6812b48f08b (patch)
tree9393a9aa099d7d42deda5f9f5054796c0c769be7 /drivers/input/evdev.c
parent3f07d8796262f6aee135c8dd9a91210da9f888e4 (diff)
parent5b94f675f57e4ff16c8fda09088d7480a84dcd91 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
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;