Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 49094
b: refs/heads/master
c: 1efa770
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Feb 18, 2007
1 parent c7fac76 commit d54268a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82dd9eff4bf3b17f5f511ae931a1f350c36ca9eb
refs/heads/master: 1efa770f8ef0bfe12cd004f2e1f75eefcd8699d3
17 changes: 2 additions & 15 deletions trunk/drivers/input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,18 +588,9 @@ static inline void input_proc_exit(void) { }
static ssize_t input_dev_show_##name(struct class_device *dev, char *buf) \
{ \
struct input_dev *input_dev = to_input_dev(dev); \
int retval; \
\
retval = mutex_lock_interruptible(&input_dev->mutex); \
if (retval) \
return retval; \
\
retval = scnprintf(buf, PAGE_SIZE, \
"%s\n", input_dev->name ? input_dev->name : ""); \
\
mutex_unlock(&input_dev->mutex); \
\
return retval; \
return scnprintf(buf, PAGE_SIZE, "%s\n", \
input_dev->name ? input_dev->name : ""); \
} \
static CLASS_DEVICE_ATTR(name, S_IRUGO, input_dev_show_##name, NULL);

Expand Down Expand Up @@ -1049,10 +1040,6 @@ void input_unregister_device(struct input_dev *dev)
sysfs_remove_group(&dev->cdev.kobj, &input_dev_id_attr_group);
sysfs_remove_group(&dev->cdev.kobj, &input_dev_attr_group);

mutex_lock(&dev->mutex);
dev->name = dev->phys = dev->uniq = NULL;
mutex_unlock(&dev->mutex);

class_device_unregister(&dev->cdev);

input_wakeup_procfs_readers();
Expand Down

0 comments on commit d54268a

Please sign in to comment.