]> git.baikalelectronics.ru Git - kernel.git/commit
Input: move name/timer init to input_alloc_dev()
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 6 Oct 2013 08:15:08 +0000 (01:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 6 Oct 2013 08:23:26 +0000 (01:23 -0700)
commit7b0389d2e433478ef06167f220a318b9040c7f53
tree986f1b7680e5757b3283ebcf23a4a3b230aebeac
parent8bdd44599e7d2ca4f87f7ed7af4f997be08c2159
Input: move name/timer init to input_alloc_dev()

We want to allow drivers to call input_event() at any time after the
device got allocated. This means input_event() and input_register_device()
must be allowed to run in parallel.

The only conflicting calls in input_register_device() are init_timer() and
dev_set_name(). Both can safely be moved to device allocation and we're
good to go.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c