]> git.baikalelectronics.ru Git - kernel.git/commit
leds: lp55xx-common: fix attribute-creation race
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jun 2014 17:08:56 +0000 (10:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Fri, 27 Jun 2014 20:44:05 +0000 (13:44 -0700)
commit3194585f8d39fc81e3f6bb1d0da8456127f7d0ac
tree2203921e8ef397ac30e509be9808a762876318ff
parent5c1bb21c36ca23c20c3182158af67280261322a1
leds: lp55xx-common: fix attribute-creation race

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