linux/drivers/leds
Antonio Ospite 592ce31639 leds/leds-regulator.c: fix handling of already enabled regulators
Make the driver aware of the initial status of the regulator.

The leds-regulator driver was ignoring the initial status of the
regulator; this resulted in rdev->use_count being incremented to 2 after
calling regulator_led_set_value() in the .probe method when a regulator
was already enabled at insmod time, which made it impossible to ever
disable the regulator.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Antonio Ospite <ospite@studenti.unina.it>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: Daniel Ribeiro <drwyrm@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-04-14 16:06:54 -07:00
..
dell-led.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
Kconfig leds: add driver for LM3530 ALS 2011-03-22 17:43:59 -07:00
led-class.c led_class: fix typo in blink API 2010-12-22 19:43:34 -08:00
led-core.c
led-triggers.c leds: Add ability to blink via simple trigger 2011-01-31 16:30:24 +03:00
leds-88pm860x.c mfd: Adopt mfd_data in 88pm860x led 2011-03-23 10:42:06 +01:00
leds-adp5520.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
leds-alix2.c
leds-ams-delta.c
leds-atmel-pwm.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
leds-bd2802.c leds: convert bd2802 driver to dev_pm_ops 2011-03-22 17:43:58 -07:00
leds-clevo-mail.c
leds-cobalt-qube.c
leds-cobalt-raq.c
leds-da903x.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
leds-dac124s085.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
leds-fsg.c
leds-gpio.c leds/leds-gpio: merge platform_driver with of_platform_driver 2011-02-28 01:36:39 -07:00
leds-h1940.c
leds-hp6xx.c
leds-lm3530.c leds: add driver for LM3530 ALS 2011-03-22 17:43:59 -07:00
leds-locomo.c
leds-lp3944.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
leds-lp5521.c drivers/leds/leds-lp5521.c: world-writable sysfs engine* files 2011-03-22 17:43:59 -07:00
leds-lp5523.c drivers/leds/leds-lp5523.c: world-writable engine* sysfs files 2011-03-22 17:43:59 -07:00
leds-lt3593.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
leds-mc13783.c mfd: mfd_cell is now implicitly available to mc13xxx drivers 2011-03-23 10:41:54 +01:00
leds-net48xx.c
leds-net5501.c leds: make *struct gpio_led_platform_data.leds const 2011-03-22 17:43:59 -07:00
leds-netxbig.c leds: add LED driver for Big Network series LEDs 2010-10-07 14:02:12 -04:00
leds-ns2.c leds: leds-ns2: fix private driver data storage 2010-10-07 14:00:23 -04:00
leds-pca955x.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
leds-pca9532.c Fix common misspellings 2011-03-31 11:26:23 -03:00
leds-pwm.c leds: leds-pwm: return proper error if pwm_request failed 2011-01-26 10:49:58 +10:00
leds-rb532.c
leds-regulator.c leds/leds-regulator.c: fix handling of already enabled regulators 2011-04-14 16:06:54 -07:00
leds-s3c24xx.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
leds-ss4200.c leds: fix bug with reading NAS SS4200 dmi code 2010-11-25 06:50:33 +09:00
leds-sunfire.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
leds-wm831x-status.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
leds-wm8350.c Fix common misspellings 2011-03-31 11:26:23 -03:00
leds-wrap.c
leds.h
ledtrig-backlight.c leds: add output inversion option to backlight trigger 2011-01-13 08:03:06 -08:00
ledtrig-default-on.c
ledtrig-gpio.c drivers/leds/ledtrig-gpio.c: make output match input, tighten input checking 2011-01-20 17:02:06 -08:00
ledtrig-heartbeat.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ledtrig-ide-disk.c
ledtrig-timer.c led-class: always implement blinking 2010-11-12 07:55:32 -08:00
Makefile leds: add driver for LM3530 ALS 2011-03-22 17:43:59 -07:00