OMAP: DSS2: DSI: ensure VDDS_DSI is disabled on exit
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 20 Dec 2010 14:26:22 +0000 (16:26 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 11 May 2011 11:20:17 +0000 (14:20 +0300)
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>
drivers/video/omap2/dss/dsi.c

index fcda46c34d1c98a03ecdfbecb533a5e693a4c76c..f89994d7b000405c4b911f604a8e8c9518e82443 100644 (file)
@@ -4090,6 +4090,11 @@ err1:
 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;
        }
This page took 0.050813 seconds and 5 git commands to generate.