diff options
author | Marta Lofstedt <marta.lofstedt@stericsson.com> | 2012-02-22 13:01:45 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:04:28 +0200 |
commit | f61b197ad7132acff379d7a55f4fcfe48885a803 (patch) | |
tree | 932404215ca80fd910defc93124fef679f9a108f | |
parent | 57716d2b65bf5fa56f50a5f3d4ebb3a35b2483ab (diff) |
video: mcde: Release ESRAM regulator
MCDE only uses ESRAM during rotation. It needs to release
the ESRAM regulator when not rotating.
ST-Ericsson ID: 419095
ST-Ericsson Linux next: -
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I0850b7598c12ad7d849969955aaac033ef063d99
Signed-off-by: Marta Lofstedt <marta.lofstedt@stericsson.com>
Change-Id: I6d683aa0fc6349caa3ae6b5ef86db4a7f73a3f3e
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50579
Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
-rw-r--r-- | drivers/video/mcde/mcde_hw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/mcde/mcde_hw.c b/drivers/video/mcde/mcde_hw.c index 535e719075d..9d3ddd48a31 100644 --- a/drivers/video/mcde/mcde_hw.c +++ b/drivers/video/mcde/mcde_hw.c @@ -3143,6 +3143,9 @@ int mcde_chnl_update(struct mcde_chnl_state *chnl, if (chnl->regs.roten && !chnl->esram_is_enabled) { WARN_ON_ONCE(regulator_enable(regulator_esram_epod)); chnl->esram_is_enabled = true; + } else if (!chnl->regs.roten && chnl->esram_is_enabled) { + WARN_ON_ONCE(regulator_disable(regulator_esram_epod)); + chnl->esram_is_enabled = false; } ret = _mcde_chnl_update(chnl, update_area, tripple_buffer); |