disp: msm: sde: remove unused functions from sde code
Cleanup unused functions from all modules in sde driver. Change-Id: Ia0e72ab9c281b4200a63ce35bf184e83fe1db5d2 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

szülő
da71fc99c4
commit
506508e1cd
@@ -5040,23 +5040,6 @@ static int sde_encoder_setup_display(struct sde_encoder_virt *sde_enc,
|
||||
SDE_DEBUG("h_tile_instance %d = %d, split_role %d\n",
|
||||
i, controller_id, phys_params.split_role);
|
||||
|
||||
if (sde_enc->ops.phys_init) {
|
||||
struct sde_encoder_phys *enc;
|
||||
|
||||
enc = sde_enc->ops.phys_init(intf_type,
|
||||
controller_id,
|
||||
&phys_params);
|
||||
if (enc) {
|
||||
sde_enc->phys_encs[sde_enc->num_phys_encs] =
|
||||
enc;
|
||||
++sde_enc->num_phys_encs;
|
||||
} else
|
||||
SDE_ERROR_ENC(sde_enc,
|
||||
"failed to add phys encs\n");
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (intf_type == INTF_WB) {
|
||||
phys_params.intf_idx = INTF_MAX;
|
||||
phys_params.wb_idx = sde_encoder_get_wb(
|
||||
@@ -5129,10 +5112,7 @@ static const struct drm_encoder_funcs sde_encoder_funcs = {
|
||||
.early_unregister = sde_encoder_early_unregister,
|
||||
};
|
||||
|
||||
struct drm_encoder *sde_encoder_init_with_ops(
|
||||
struct drm_device *dev,
|
||||
struct msm_display_info *disp_info,
|
||||
const struct sde_encoder_ops *ops)
|
||||
struct drm_encoder *sde_encoder_init(struct drm_device *dev, struct msm_display_info *disp_info)
|
||||
{
|
||||
struct msm_drm_private *priv = dev->dev_private;
|
||||
struct sde_kms *sde_kms = to_sde_kms(priv->kms);
|
||||
@@ -5149,9 +5129,6 @@ struct drm_encoder *sde_encoder_init_with_ops(
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (ops)
|
||||
sde_enc->ops = *ops;
|
||||
|
||||
mutex_init(&sde_enc->enc_lock);
|
||||
ret = sde_encoder_setup_display(sde_enc, sde_kms, disp_info,
|
||||
&drm_enc_mode);
|
||||
@@ -5222,13 +5199,6 @@ fail:
|
||||
return ERR_PTR(ret);
|
||||
}
|
||||
|
||||
struct drm_encoder *sde_encoder_init(
|
||||
struct drm_device *dev,
|
||||
struct msm_display_info *disp_info)
|
||||
{
|
||||
return sde_encoder_init_with_ops(dev, disp_info, NULL);
|
||||
}
|
||||
|
||||
int sde_encoder_wait_for_event(struct drm_encoder *drm_enc,
|
||||
enum msm_event_wait event)
|
||||
{
|
||||
|
Reference in New Issue
Block a user