diff options
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 4954c790ccb1..f2c85a60a0dc 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -912,6 +912,8 @@ struct input_dev *input_allocate_device(void) | |||
912 | mutex_init(&dev->mutex); | 912 | mutex_init(&dev->mutex); |
913 | INIT_LIST_HEAD(&dev->h_list); | 913 | INIT_LIST_HEAD(&dev->h_list); |
914 | INIT_LIST_HEAD(&dev->node); | 914 | INIT_LIST_HEAD(&dev->node); |
915 | |||
916 | __module_get(THIS_MODULE); | ||
915 | } | 917 | } |
916 | 918 | ||
917 | return dev; | 919 | return dev; |
@@ -985,8 +987,6 @@ int input_register_device(struct input_dev *dev) | |||
985 | if (error) | 987 | if (error) |
986 | goto fail3; | 988 | goto fail3; |
987 | 989 | ||
988 | __module_get(THIS_MODULE); | ||
989 | |||
990 | path = kobject_get_path(&dev->cdev.kobj, GFP_KERNEL); | 990 | path = kobject_get_path(&dev->cdev.kobj, GFP_KERNEL); |
991 | printk(KERN_INFO "input: %s as %s\n", | 991 | printk(KERN_INFO "input: %s as %s\n", |
992 | dev->name ? dev->name : "Unspecified device", path ? path : "N/A"); | 992 | dev->name ? dev->name : "Unspecified device", path ? path : "N/A"); |