diff options
Diffstat (limited to 'drivers/input/tsdev.c')
-rw-r--r-- | drivers/input/tsdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/tsdev.c b/drivers/input/tsdev.c index 8e2d2c924adf..5e5b5c91d75b 100644 --- a/drivers/input/tsdev.c +++ b/drivers/input/tsdev.c | |||
@@ -442,7 +442,7 @@ static int tsdev_connect(struct input_handler *handler, struct input_dev *dev, | |||
442 | } | 442 | } |
443 | 443 | ||
444 | /* temporary symlink to keep userspace happy */ | 444 | /* temporary symlink to keep userspace happy */ |
445 | error = sysfs_create_link(&input_class.subsys.kset.kobj, | 445 | error = sysfs_create_link(&input_class.subsys.kobj, |
446 | &cdev->kobj, tsdev->name); | 446 | &cdev->kobj, tsdev->name); |
447 | if (error) | 447 | if (error) |
448 | goto err_cdev_destroy; | 448 | goto err_cdev_destroy; |
@@ -454,7 +454,7 @@ static int tsdev_connect(struct input_handler *handler, struct input_dev *dev, | |||
454 | return 0; | 454 | return 0; |
455 | 455 | ||
456 | err_remove_link: | 456 | err_remove_link: |
457 | sysfs_remove_link(&input_class.subsys.kset.kobj, tsdev->name); | 457 | sysfs_remove_link(&input_class.subsys.kobj, tsdev->name); |
458 | err_cdev_destroy: | 458 | err_cdev_destroy: |
459 | class_device_destroy(&input_class, devt); | 459 | class_device_destroy(&input_class, devt); |
460 | err_free_tsdev: | 460 | err_free_tsdev: |
@@ -470,7 +470,7 @@ static void tsdev_disconnect(struct input_handle *handle) | |||
470 | 470 | ||
471 | input_unregister_handle(handle); | 471 | input_unregister_handle(handle); |
472 | 472 | ||
473 | sysfs_remove_link(&input_class.subsys.kset.kobj, tsdev->name); | 473 | sysfs_remove_link(&input_class.subsys.kobj, tsdev->name); |
474 | class_device_destroy(&input_class, | 474 | class_device_destroy(&input_class, |
475 | MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + tsdev->minor)); | 475 | MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + tsdev->minor)); |
476 | tsdev->exist = 0; | 476 | tsdev->exist = 0; |