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 <jsanka@codeaurora.org>
Cette révision appartient à :
Jeykumar Sankaran
2021-10-05 20:51:58 -07:00
révisé par Gerrit - the friendly Code Review server
Parent 425df29bb6
révision 3f072ce464

Voir le fichier

@@ -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);