From 3f072ce464818821f348ec952835db2f433ad6bf Mon Sep 17 00:00:00 2001 From: Jeykumar Sankaran Date: Tue, 5 Oct 2021 20:51:58 -0700 Subject: [PATCH] disp: msm: dsi: avoid using devm_pwm_put API got deprecated in kernel 5.15. Remove the usage. Change-Id: I10c4fdee1074fcf50ae4fe28124692dae7a31c7c Signed-off-by: Jeykumar Sankaran --- msm/dsi/dsi_panel.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index e98822da18..46ce5f8638 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -747,13 +747,6 @@ error: return rc; } -static void dsi_panel_pwm_unregister(struct dsi_panel *panel) -{ - struct dsi_backlight_config *bl = &panel->bl_config; - - devm_pwm_put(panel->parent, bl->pwm_bl); -} - static int dsi_panel_bl_unregister(struct dsi_panel *panel) { int rc = 0; @@ -770,7 +763,6 @@ static int dsi_panel_bl_unregister(struct dsi_panel *panel) case DSI_BACKLIGHT_EXTERNAL: break; case DSI_BACKLIGHT_PWM: - dsi_panel_pwm_unregister(panel); break; default: DSI_ERR("Backlight type(%d) not supported\n", bl->type);