Skip to content

Commit

Permalink
[PATCH] INPUT: register the input class device sooner
Browse files Browse the repository at this point in the history
This is needed so we can actually use the class device within the input
handlers.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Oct 28, 2005
1 parent 5c1e9a6 commit 1020402
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,16 +795,16 @@ void input_register_device(struct input_dev *dev)
INIT_LIST_HEAD(&dev->h_list);
list_add_tail(&dev->node, &input_dev_list);

if (dev->dynalloc)
input_register_classdevice(dev);

list_for_each_entry(handler, &input_handler_list, node)
if (!handler->blacklist || !input_match_device(handler->blacklist, dev))
if ((id = input_match_device(handler->id_table, dev)))
if ((handle = handler->connect(handler, dev, id)))
input_link_handle(handle);


if (dev->dynalloc)
input_register_classdevice(dev);

#ifdef CONFIG_HOTPLUG
input_call_hotplug("add", dev);
#endif
Expand Down

0 comments on commit 1020402

Please sign in to comment.