]> 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)
commitfbe716e3a83b504dfd8115762c78668cf46ad767
tree986f1b7680e5757b3283ebcf23a4a3b230aebeac
parent0f327b73dbf2abe43dfa2fdbb893f9cb45ce14ee
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