aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2006-09-14 01:32:28 -0400
committerDmitry Torokhov <dtor@insightbb.com>2006-09-14 01:32:28 -0400
commit68c2a1607cd6dd12427c9566b39756e92708713c (patch)
treec3fc9a44a66f90bbdb08426886f14c664dfbaffc
parent655816e49867082d13ece0da31d76e12cc0de4a5 (diff)
Input: remove cruft that was needed for transition to sysfs
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r--drivers/input/input.c10
-rw-r--r--include/linux/input.h9
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index f2c85a60a0dc..c3448364cc73 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -906,7 +906,6 @@ struct input_dev *input_allocate_device(void)
906 906
907 dev = kzalloc(sizeof(struct input_dev), GFP_KERNEL); 907 dev = kzalloc(sizeof(struct input_dev), GFP_KERNEL);
908 if (dev) { 908 if (dev) {
909 dev->dynalloc = 1;
910 dev->cdev.class = &input_class; 909 dev->cdev.class = &input_class;
911 class_device_initialize(&dev->cdev); 910 class_device_initialize(&dev->cdev);
912 mutex_init(&dev->mutex); 911 mutex_init(&dev->mutex);
@@ -942,13 +941,6 @@ int input_register_device(struct input_dev *dev)
942 const char *path; 941 const char *path;
943 int error; 942 int error;
944 943
945 if (!dev->dynalloc) {
946 printk(KERN_WARNING "input: device %s is statically allocated, will not register\n"
947 "Please convert to input_allocate_device() or contact dtor_core@ameritech.net\n",
948 dev->name ? dev->name : "<Unknown>");
949 return -EINVAL;
950 }
951
952 set_bit(EV_SYN, dev->evbit); 944 set_bit(EV_SYN, dev->evbit);
953 945
954 /* 946 /*
@@ -964,10 +956,8 @@ int input_register_device(struct input_dev *dev)
964 dev->rep[REP_PERIOD] = 33; 956 dev->rep[REP_PERIOD] = 33;
965 } 957 }
966 958
967 INIT_LIST_HEAD(&dev->h_list);
968 list_add_tail(&dev->node, &input_dev_list); 959 list_add_tail(&dev->node, &input_dev_list);
969 960
970 dev->cdev.class = &input_class;
971 snprintf(dev->cdev.class_id, sizeof(dev->cdev.class_id), 961 snprintf(dev->cdev.class_id, sizeof(dev->cdev.class_id),
972 "input%ld", (unsigned long) atomic_inc_return(&input_no) - 1); 962 "input%ld", (unsigned long) atomic_inc_return(&input_no) - 1);
973 963
diff --git a/include/linux/input.h b/include/linux/input.h
index 300036b7755a..155b2bc96842 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -978,9 +978,6 @@ struct input_dev {
978 unsigned int users; 978 unsigned int users;
979 979
980 struct class_device cdev; 980 struct class_device cdev;
981 struct device *dev; /* will be removed soon */
982
983 int dynalloc; /* temporarily */
984 981
985 struct list_head h_list; 982 struct list_head h_list;
986 struct list_head node; 983 struct list_head node;
@@ -1093,12 +1090,6 @@ struct input_handle {
1093#define to_handle(n) container_of(n,struct input_handle,d_node) 1090#define to_handle(n) container_of(n,struct input_handle,d_node)
1094#define to_handle_h(n) container_of(n,struct input_handle,h_node) 1091#define to_handle_h(n) container_of(n,struct input_handle,h_node)
1095 1092
1096static inline void init_input_dev(struct input_dev *dev)
1097{
1098 INIT_LIST_HEAD(&dev->h_list);
1099 INIT_LIST_HEAD(&dev->node);
1100}
1101
1102struct input_dev *input_allocate_device(void); 1093struct input_dev *input_allocate_device(void);
1103void input_free_device(struct input_dev *dev); 1094void input_free_device(struct input_dev *dev);
1104 1095