leds: lm3533: fix attribute-creation race
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jun 2014 17:08:46 +0000 (10:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Wed, 25 Jun 2014 22:02:31 +0000 (15:02 -0700)
commit9db9386016c6cfc6a6af3bacc7043cab8ff04ecf
tree77f0ca4c8fdd65069d4fb48ed26aeae4f7ea344d
parent74c850394394efc0905c22ab9686e8d20e3921eb
leds: lm3533: fix attribute-creation race

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