Skip to content

Commit

Permalink
OMAP: DSS2: DSI: ensure VDDS_DSI is disabled on exit
Browse files Browse the repository at this point in the history
The panel drivers can leave the VDDS_DSI regulator enabled, even when
the panel is disabled, to ensure that the DSI pins are powered.

This patch ensures that VDDS_DSI is disabled on DSI module unload.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Tomi Valkeinen committed May 11, 2011
1 parent d1f5857 commit 88257b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4090,6 +4090,11 @@ static int dsi_init(struct platform_device *pdev)
static void dsi_exit(void)
{
if (dsi.vdds_dsi_reg != NULL) {
if (dsi.vdds_dsi_enabled) {
regulator_disable(dsi.vdds_dsi_reg);
dsi.vdds_dsi_enabled = false;
}

regulator_put(dsi.vdds_dsi_reg);
dsi.vdds_dsi_reg = NULL;
}
Expand Down

0 comments on commit 88257b2

Please sign in to comment.