提交 88257b26 编写于 作者: T Tomi Valkeinen

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: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 d1f5857e
...@@ -4090,6 +4090,11 @@ static int dsi_init(struct platform_device *pdev) ...@@ -4090,6 +4090,11 @@ static int dsi_init(struct platform_device *pdev)
static void dsi_exit(void) static void dsi_exit(void)
{ {
if (dsi.vdds_dsi_reg != NULL) { 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); regulator_put(dsi.vdds_dsi_reg);
dsi.vdds_dsi_reg = NULL; dsi.vdds_dsi_reg = NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册