Thread (2 messages) flat view 2 messages, 2 authors, 2011-03-23

[PATCH] leds: leds-regulator.c, fix handling already enabled regulators

From: Mark Brown <hidden>
Date: 2011-03-23 21:21:14
Also in: lkml

On Wed, Mar 23, 2011 at 10:00:02PM +0100, Antonio Ospite wrote:
The leds-regulator driver was ignoring the initial status of the
regulator; this resulted in rdev->use_count incremented up to 2 after
calling regulator_led_set_value() in the .probe method when a regulator
was already enabled at insmod time, and this made impossible to ever
disable the regulator.
Acked-by: Mark Brown <redacted>
NOTE: initially I thought about CC-ing stable at kernel.org as well on 
this, as it is an actual fix, but then I checked that there are 
currently no users of the driver in mainline linux and I dropped it, is 
that how it should be?
Even if there's no users in mainline people could well be shipping out
of tree boards using it and could benefit from the code.  OTOH it's not
the most urgent thing ever.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help