]> git.baikalelectronics.ru Git - kernel.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)
commit2a2ad058ff3198e9fd2674d4fafd9c829b9ddca8
tree875ffc309e6a220c721219188ebed2e2c3a80f0e
parent2370a4a93ed3320e4cf435faeb6ed2f5e00d99fb
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