Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37906
b: refs/heads/master
c: 68c2a16
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Sep 14, 2006
1 parent 461085a commit 2be3c53
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 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: 655816e49867082d13ece0da31d76e12cc0de4a5
refs/heads/master: 68c2a1607cd6dd12427c9566b39756e92708713c
10 changes: 0 additions & 10 deletions trunk/drivers/input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,6 @@ struct input_dev *input_allocate_device(void)

dev = kzalloc(sizeof(struct input_dev), GFP_KERNEL);
if (dev) {
dev->dynalloc = 1;
dev->cdev.class = &input_class;
class_device_initialize(&dev->cdev);
mutex_init(&dev->mutex);
Expand Down Expand Up @@ -942,13 +941,6 @@ int input_register_device(struct input_dev *dev)
const char *path;
int error;

if (!dev->dynalloc) {
printk(KERN_WARNING "input: device %s is statically allocated, will not register\n"
"Please convert to input_allocate_device() or contact dtor_core@ameritech.net\n",
dev->name ? dev->name : "<Unknown>");
return -EINVAL;
}

set_bit(EV_SYN, dev->evbit);

/*
Expand All @@ -964,10 +956,8 @@ int input_register_device(struct input_dev *dev)
dev->rep[REP_PERIOD] = 33;
}

INIT_LIST_HEAD(&dev->h_list);
list_add_tail(&dev->node, &input_dev_list);

dev->cdev.class = &input_class;
snprintf(dev->cdev.class_id, sizeof(dev->cdev.class_id),
"input%ld", (unsigned long) atomic_inc_return(&input_no) - 1);

Expand Down
9 changes: 0 additions & 9 deletions trunk/include/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -978,9 +978,6 @@ struct input_dev {
unsigned int users;

struct class_device cdev;
struct device *dev; /* will be removed soon */

int dynalloc; /* temporarily */

struct list_head h_list;
struct list_head node;
Expand Down Expand Up @@ -1093,12 +1090,6 @@ struct input_handle {
#define to_handle(n) container_of(n,struct input_handle,d_node)
#define to_handle_h(n) container_of(n,struct input_handle,h_node)

static inline void init_input_dev(struct input_dev *dev)
{
INIT_LIST_HEAD(&dev->h_list);
INIT_LIST_HEAD(&dev->node);
}

struct input_dev *input_allocate_device(void);
void input_free_device(struct input_dev *dev);

Expand Down

0 comments on commit 2be3c53

Please sign in to comment.