diff options
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index fcda46c34d1c..f89994d7b000 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c | |||
@@ -4090,6 +4090,11 @@ err1: | |||
4090 | static void dsi_exit(void) | 4090 | static 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 | } |