mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
drm/msm/dpu: use drmm_writeback_connector_init()
Use drmm_writeback_connector_init() in order to initialize writeback connector instance. Reviewed-by: Louis Chauvet <[email protected]> Reviewed-by: Suraj Kandpal <[email protected]> Reviewed-by: Jessica Zhang <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/669506/ Link: https://lore.kernel.org/r/[email protected] [DB: fixed commit message] Signed-off-by: Dmitry Baryshkov <[email protected]>
This commit is contained in:
@@ -80,7 +80,6 @@ static int dpu_wb_conn_atomic_check(struct drm_connector *connector,
|
||||
static const struct drm_connector_funcs dpu_wb_conn_funcs = {
|
||||
.reset = drm_atomic_helper_connector_reset,
|
||||
.fill_modes = drm_helper_probe_single_connector_modes,
|
||||
.destroy = drm_connector_cleanup,
|
||||
.atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
|
||||
.atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
|
||||
};
|
||||
@@ -131,12 +130,9 @@ int dpu_writeback_init(struct drm_device *dev, struct drm_encoder *enc,
|
||||
|
||||
drm_connector_helper_add(&dpu_wb_conn->base.base, &dpu_wb_conn_helper_funcs);
|
||||
|
||||
/* DPU initializes the encoder and sets it up completely for writeback
|
||||
* cases and hence should use the new API drm_writeback_connector_init_with_encoder
|
||||
* to initialize the writeback connector
|
||||
*/
|
||||
rc = drm_writeback_connector_init_with_encoder(dev, &dpu_wb_conn->base, enc,
|
||||
&dpu_wb_conn_funcs, format_list, num_formats);
|
||||
rc = drmm_writeback_connector_init(dev, &dpu_wb_conn->base,
|
||||
&dpu_wb_conn_funcs, enc,
|
||||
format_list, num_formats);
|
||||
|
||||
if (!rc)
|
||||
dpu_wb_conn->wb_enc = enc;
|
||||
|
||||
Reference in New Issue
Block a user