]> git.baikalelectronics.ru Git - kernel.git/commit
leds: lm3642: fix attribute-creation race
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jun 2014 17:08:48 +0000 (10:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Wed, 25 Jun 2014 22:13:08 +0000 (15:13 -0700)
commit67fcc9d4728af967762a2f09a10d4c34c67c0a5d
tree649df91fd2a99bfe3a970cbdeb5ac930dc4dabb4
parenta37fe6c4a55d546427a117b2fd4f8cb8878ea12c
leds: lm3642: fix attribute-creation race

Use the attribute groups of the led-class to create the flash and
torch-LED attributes during probe in order to avoid racing with
userspace.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lm3642.c