input: lm8323: fix attribute-creation race
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jun 2014 17:08:54 +0000 (10:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Fri, 27 Jun 2014 20:43:45 +0000 (13:43 -0700)
commitf254bea49d05ee80b09d577947bd3b937e3a304a
tree1f7cd7ba3bd5d646811e2b826be4e6f65d2a23ac
parentb2015ed5eae165372b6762b2d967829ba0254956
input: lm8323: fix attribute-creation race

Use the attribute groups of the led-class to create the time attribute
during probe in order to avoid racing with userspace.

Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/input/keyboard/lm8323.c