]> git.karo-electronics.de Git - linux-beck.git/commit
leds: ss4200: fix attribute-creation race
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jun 2014 17:08:52 +0000 (10:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Wed, 25 Jun 2014 22:34:24 +0000 (15:34 -0700)
commit67bd8eb07eb873fe0b189ee2a9a9ca67f9023270
tree875ffc309e6a220c721219188ebed2e2c3a80f0e
parent475f85482663985550e589496bc3c1e09521838a
leds: ss4200: fix attribute-creation race

Use the attribute groups of the led-class to create the blink attribute
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-ss4200.c