summaryrefslogtreecommitdiffstats
path: root/drivers/input/input.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-10-27 22:25:43 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 09:52:54 -0700
commit102040204f1949562406b72007c14a2a241cb0d9 (patch)
tree3ede0afbcb9182f346f5b61592005ad553c8e4d7 /drivers/input/input.c
parent5c1e9a6a6ab2f4c60462cecb7773860a62d86e39 (diff)
downloadkernel-crypto-102040204f1949562406b72007c14a2a241cb0d9.tar.gz
kernel-crypto-102040204f1949562406b72007c14a2a241cb0d9.tar.xz
kernel-crypto-102040204f1949562406b72007c14a2a241cb0d9.zip
[PATCH] INPUT: register the input class device sooner
This is needed so we can actually use the class device within the input handlers. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r--drivers/input/input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 57fbfd90715..03c2ca404f2 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -795,6 +795,9 @@ 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)))
@@ -802,9 +805,6 @@ void input_register_device(struct input_dev *dev)
input_link_handle(handle);
- if (dev->dynalloc)
- input_register_classdevice(dev);
-
#ifdef CONFIG_HOTPLUG
input_call_hotplug("add", dev);
#endif