linux-stable-rt/drivers/leds
Florian Fainelli 14b5d6dd40 leds: Fix race between LED device uevent and actual attributes creation
If we were to dynamically register/unregister leds and have udev or other
daemons handle the leds class uevents, we would be notified of the adding of a
new LED and if the daemon immediately tries to open one of the attributes of
the led device, it would fail with a "no such file or directory" error since
this the attributes are not yet created. Fix this by switching attributes to be
class-wide, such that the driver core will register these attributes with
device_add_attrs and then emit the kobject_uevent ADD signal.

Signed-off-by:  Fainelli <ffainelli@freebox.fr>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-16 20:27:25 +00:00
..
Kconfig leds: Add Dell Business Class Netbook LED driver 2010-03-16 19:49:21 +00:00
Makefile leds: Add Dell Business Class Netbook LED driver 2010-03-16 19:49:21 +00:00
dell-led.c leds: Add Dell Business Class Netbook LED driver 2010-03-16 19:49:21 +00:00
led-class.c leds: Fix race between LED device uevent and actual attributes creation 2010-03-16 20:27:25 +00:00
led-core.c
led-triggers.c
leds-88pm860x.c
leds-adp5520.c
leds-alix2.c
leds-ams-delta.c
leds-atmel-pwm.c
leds-bd2802.c
leds-clevo-mail.c
leds-cobalt-qube.c
leds-cobalt-raq.c
leds-da903x.c
leds-dac124s085.c
leds-fsg.c
leds-gpio.c leds-gpio: fix default state handling on OF platforms 2010-03-16 19:53:19 +00:00
leds-h1940.c
leds-hp6xx.c
leds-locomo.c
leds-lp3944.c
leds-lt3593.c
leds-net48xx.c
leds-pca955x.c
leds-pca9532.c
leds-pwm.c
leds-rb532.c
leds-regulator.c
leds-s3c24xx.c
leds-ss4200.c leds: make PCI device id constant 2010-03-16 19:49:21 +00:00
leds-sunfire.c
leds-wm831x-status.c
leds-wm8350.c
leds-wrap.c
leds.h
ledtrig-backlight.c
ledtrig-default-on.c
ledtrig-gpio.c
ledtrig-heartbeat.c
ledtrig-ide-disk.c
ledtrig-timer.c