Browse Source

disp: msm: dsi: Update ctrl & phy refcounts for defer probe

ctrl and phy refcounts get incremented even on deferring probe
for display panels which need backlight through wled.As a
result, while probing, it considers that the device is already
in use. This change decrements the ctrl and phy refcounts for
defer probe.

Change-Id: Ica1f5712dd28ed4c635946f2ac89d5f4f074a4c5
Signed-off-by: Lipsa Rout <[email protected]>
Lipsa Rout 4 years ago
parent
commit
46fb68a8f1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      msm/dsi/dsi_display.c

+ 2 - 0
msm/dsi/dsi_display.c

@@ -5666,6 +5666,8 @@ error_ctrl_deinit:
 		display_ctrl = &display->ctrl[i];
 		display_ctrl = &display->ctrl[i];
 		(void)dsi_phy_drv_deinit(display_ctrl->phy);
 		(void)dsi_phy_drv_deinit(display_ctrl->phy);
 		(void)dsi_ctrl_drv_deinit(display_ctrl->ctrl);
 		(void)dsi_ctrl_drv_deinit(display_ctrl->ctrl);
+		dsi_ctrl_put(display_ctrl->ctrl);
+		dsi_phy_put(display_ctrl->phy);
 	}
 	}
 	(void)dsi_display_debugfs_deinit(display);
 	(void)dsi_display_debugfs_deinit(display);
 error:
 error: