]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Overo broken after recent mainline merge
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 14 Mar 2009 19:08:30 +0000 (19:08 +0000)
committerTony Lindgren <tony@atomide.com>
Fri, 20 Mar 2009 19:18:37 +0000 (12:18 -0700)
commitf4223ec219313d631c3f620220ed23670c158a34
tree15e820898a15135cc719e1ca5a5b9c403df236ee
parent51b50f420fbb144b5a02dbc817fe7b72c3476d66
Overo broken after recent mainline merge

Make the regulator setup code simpler and more consistent:

 - The only difference between "boot_on" and "always_on" is
   that an "always_on" regulator won't be disabled.  Both will
   be active (and usecount will be 1) on return from setup.

 - Regulators not marked as "boot_on" or "always_on" won't
   be active (and usecount will be 0) on return from setup.

The exception to that simple policy is when there's a non-Linux
interface to the regulator ... e.g. if either a DSP or the CPU
running Linux can enable the regulator, and the DSP needs it to
be on, then it will be on.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/regulator/core.c