diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 01:25:43 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 12:52:54 -0400 |
commit | 102040204f1949562406b72007c14a2a241cb0d9 (patch) | |
tree | 3ede0afbcb9182f346f5b61592005ad553c8e4d7 /drivers | |
parent | 5c1e9a6a6ab2f4c60462cecb7773860a62d86e39 (diff) |
[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')
-rw-r--r-- | drivers/input/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 57fbfd907157..03c2ca404f20 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -795,6 +795,9 @@ void input_register_device(struct input_dev *dev) | |||
795 | INIT_LIST_HEAD(&dev->h_list); | 795 | INIT_LIST_HEAD(&dev->h_list); |
796 | list_add_tail(&dev->node, &input_dev_list); | 796 | list_add_tail(&dev->node, &input_dev_list); |
797 | 797 | ||
798 | if (dev->dynalloc) | ||
799 | input_register_classdevice(dev); | ||
800 | |||
798 | list_for_each_entry(handler, &input_handler_list, node) | 801 | list_for_each_entry(handler, &input_handler_list, node) |
799 | if (!handler->blacklist || !input_match_device(handler->blacklist, dev)) | 802 | if (!handler->blacklist || !input_match_device(handler->blacklist, dev)) |
800 | if ((id = input_match_device(handler->id_table, dev))) | 803 | if ((id = input_match_device(handler->id_table, dev))) |
@@ -802,9 +805,6 @@ void input_register_device(struct input_dev *dev) | |||
802 | input_link_handle(handle); | 805 | input_link_handle(handle); |
803 | 806 | ||
804 | 807 | ||
805 | if (dev->dynalloc) | ||
806 | input_register_classdevice(dev); | ||
807 | |||
808 | #ifdef CONFIG_HOTPLUG | 808 | #ifdef CONFIG_HOTPLUG |
809 | input_call_hotplug("add", dev); | 809 | input_call_hotplug("add", dev); |
810 | #endif | 810 | #endif |