diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2006-07-19 01:08:51 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-07-19 01:08:51 -0400 |
commit | b6d786dbe6fc19b51edd6cf6de84fd65b702c800 (patch) | |
tree | 999b39ed26d3c51278d469f5ea7c1d5a7b49eaaa /drivers/input | |
parent | cb78623517ca08a035a3f69c0ca6d68a0123e649 (diff) |
Input: add missing handler->start() call
The start() method need to be called every time we create
a new handle. This includes not only registering new devices
but also when registering new handlers.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 9c98b6d6848b..9cb4b9a54f01 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -1056,8 +1056,11 @@ void input_register_handler(struct input_handler *handler) | |||
1056 | list_for_each_entry(dev, &input_dev_list, node) | 1056 | list_for_each_entry(dev, &input_dev_list, node) |
1057 | if (!handler->blacklist || !input_match_device(handler->blacklist, dev)) | 1057 | if (!handler->blacklist || !input_match_device(handler->blacklist, dev)) |
1058 | if ((id = input_match_device(handler->id_table, dev))) | 1058 | if ((id = input_match_device(handler->id_table, dev))) |
1059 | if ((handle = handler->connect(handler, dev, id))) | 1059 | if ((handle = handler->connect(handler, dev, id))) { |
1060 | input_link_handle(handle); | 1060 | input_link_handle(handle); |
1061 | if (handler->start) | ||
1062 | handler->start(handle); | ||
1063 | } | ||
1061 | 1064 | ||
1062 | input_wakeup_procfs_readers(); | 1065 | input_wakeup_procfs_readers(); |
1063 | } | 1066 | } |