Put the reference of the panel returned by of_drm_find_panel() in the disable() function after which panel won't be used. Patch added in v2. Signed-off-by: Anusha Srivatsa <asrivats@xxxxxxxxxx> --- drivers/gpu/drm/sti/sti_dvo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/sti/sti_dvo.c b/drivers/gpu/drm/sti/sti_dvo.c index 7484d3c3f4ed5fac7eab408e30cbe2f6b87f27e5..11684279320a0e4b15fe761bdf6782cc24e8be96 100644 --- a/drivers/gpu/drm/sti/sti_dvo.c +++ b/drivers/gpu/drm/sti/sti_dvo.c @@ -225,6 +225,8 @@ static void sti_dvo_disable(struct drm_bridge *bridge) drm_panel_disable(dvo->panel); + drm_panel_put(dvo->panel); + /* Disable/unprepare dvo clock */ clk_disable_unprepare(dvo->clk_pix); clk_disable_unprepare(dvo->clk); -- 2.48.1