leds: ns2: fix attribute-creation race
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jun 2014 17:08:51 +0000 (10:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Wed, 25 Jun 2014 22:32:11 +0000 (15:32 -0700)
commit475f85482663985550e589496bc3c1e09521838a
treeab5967b79cc723ec2482531f5e621fa3c0f86a2e
parent588a6a99286ae30afb1339d8bc2163517b1b7dd1
leds: ns2: fix attribute-creation race

Use the attribute groups of the led-class to create the sata 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-ns2.c
This page took 0.024317 seconds and 5 git commands to generate.