aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2010-12-20 09:26:22 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-05-11 07:20:17 -0400
commit88257b26953f73f30acf49587cb42b84be43c587 (patch)
tree504d67f7356c700083e1611fd7e374d9496a194f /drivers
parentd1f5857e4bc9b2620fb3e84b1dbaa0ac11b831b4 (diff)
OMAP: DSS2: DSI: ensure VDDS_DSI is disabled on exit
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/omap2/dss/dsi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index fcda46c34d1..f89994d7b00 100644
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -4090,6 +4090,11 @@ err1:
4090static void dsi_exit(void) 4090static void dsi_exit(void)
4091{ 4091{
4092 if (dsi.vdds_dsi_reg != NULL) { 4092 if (dsi.vdds_dsi_reg != NULL) {
4093 if (dsi.vdds_dsi_enabled) {
4094 regulator_disable(dsi.vdds_dsi_reg);
4095 dsi.vdds_dsi_enabled = false;
4096 }
4097
4093 regulator_put(dsi.vdds_dsi_reg); 4098 regulator_put(dsi.vdds_dsi_reg);
4094 dsi.vdds_dsi_reg = NULL; 4099 dsi.vdds_dsi_reg = NULL;
4095 } 4100 }