diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-03-12 01:43:34 +0100 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-03-31 10:56:28 +0200 |
commit | cd94b5053081963614f6ad77b9b66a7968056c84 (patch) | |
tree | 42e2ae16a14457a4e755f63fd5ff95511220f9c8 /virt | |
parent | regulator: Don't warn if we failed to get a regulator (diff) | |
download | linux-cd94b5053081963614f6ad77b9b66a7968056c84.tar.xz linux-cd94b5053081963614f6ad77b9b66a7968056c84.zip |
regulator: refcount fixes
Fix some refcounting issues in the regulator framework, supporting
regulator_disable() for regulators that were enabled at boot time
via machine constraints:
- Update those regulators' usecounts after enabling, so they
can cleanly be disabled at that level.
- Remove the problematic per-consumer usecount, so there's
only one level of enable/disable.
Buggy consumers could notice different bug symptoms. The main
example would be refcounting bugs; also, any (out-of-tree) users
of the experimental regulator_set_optimum_mode() stuff which
don't call it when they're done using a regulator.
This is a net minor codeshrink.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions