]> err.no Git - linux-2.6/commitdiff
Input: add missing handler->start() call
authorDmitry Torokhov <dtor@insightbb.com>
Wed, 19 Jul 2006 05:08:51 +0000 (01:08 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Wed, 19 Jul 2006 05:08:51 +0000 (01:08 -0400)
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>
drivers/input/input.c

index 9c98b6d6848b2a465d3575cddcd7e13f3569407d..9cb4b9a54f01ffa38dd0f803785f190dae1f8adb 100644 (file)
@@ -1056,8 +1056,11 @@ void input_register_handler(struct input_handler *handler)
        list_for_each_entry(dev, &input_dev_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)))
+                               if ((handle = handler->connect(handler, dev, id))) {
                                        input_link_handle(handle);
+                                       if (handler->start)
+                                               handler->start(handle);
+                               }
 
        input_wakeup_procfs_readers();
 }