mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-01 19:34:35 +08:00
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>
This commit is contained in:
parent
d1f5857e4b
commit
88257b2695
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user