The loongson connector implementation uses the deprecated
drm_atomic_helper_connector_reset() as its reset hook.

Switch to drm_atomic_helper_connector_create_state() instead.

Signed-off-by: Maxime Ripard <[email protected]>
---
Cc: Huacai Chen <[email protected]>
Cc: Icenowy Zheng <[email protected]>
Cc: Jianmin Lv <[email protected]>
Cc: Mingcong Bai <[email protected]>
Cc: Qianhai Wu <[email protected]>
Cc: Xi Ruoyao <[email protected]>
---
 drivers/gpu/drm/loongson/lsdc_output_7a1000.c | 2 +-
 drivers/gpu/drm/loongson/lsdc_output_7a2000.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/loongson/lsdc_output_7a1000.c 
b/drivers/gpu/drm/loongson/lsdc_output_7a1000.c
index 5c483baa3762..3d4562353578 100644
--- a/drivers/gpu/drm/loongson/lsdc_output_7a1000.c
+++ b/drivers/gpu/drm/loongson/lsdc_output_7a1000.c
@@ -93,11 +93,11 @@ ls7a1000_dpi_connector_detect(struct drm_connector 
*connector, bool force)
 
 static const struct drm_connector_funcs ls7a1000_dpi_connector_funcs = {
        .detect = ls7a1000_dpi_connector_detect,
        .fill_modes = drm_helper_probe_single_connector_modes,
        .destroy = drm_connector_cleanup,
-       .reset = drm_atomic_helper_connector_reset,
+       .atomic_create_state = drm_atomic_helper_connector_create_state,
        .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
        .atomic_destroy_state = drm_atomic_helper_connector_destroy_state
 };
 
 static void ls7a1000_pipe0_encoder_reset(struct drm_encoder *encoder)
diff --git a/drivers/gpu/drm/loongson/lsdc_output_7a2000.c 
b/drivers/gpu/drm/loongson/lsdc_output_7a2000.c
index a9798b3dadee..e2255e6a0d32 100644
--- a/drivers/gpu/drm/loongson/lsdc_output_7a2000.c
+++ b/drivers/gpu/drm/loongson/lsdc_output_7a2000.c
@@ -201,20 +201,20 @@ ls7a2000_hdmi1_connector_detect(struct drm_connector 
*connector, bool force)
 static const struct drm_connector_funcs ls7a2000_hdmi_connector_funcs[2] = {
        {
                .detect = ls7a2000_hdmi0_vga_connector_detect,
                .fill_modes = drm_helper_probe_single_connector_modes,
                .destroy = drm_connector_cleanup,
-               .reset = drm_atomic_helper_connector_reset,
+               .atomic_create_state = drm_atomic_helper_connector_create_state,
                .atomic_duplicate_state = 
drm_atomic_helper_connector_duplicate_state,
                .atomic_destroy_state = 
drm_atomic_helper_connector_destroy_state,
                .debugfs_init = ls7a2000_hdmi0_late_register,
        },
        {
                .detect = ls7a2000_hdmi1_connector_detect,
                .fill_modes = drm_helper_probe_single_connector_modes,
                .destroy = drm_connector_cleanup,
-               .reset = drm_atomic_helper_connector_reset,
+               .atomic_create_state = drm_atomic_helper_connector_create_state,
                .atomic_duplicate_state = 
drm_atomic_helper_connector_duplicate_state,
                .atomic_destroy_state = 
drm_atomic_helper_connector_destroy_state,
                .debugfs_init = ls7a2000_hdmi1_late_register,
        },
 };

-- 
2.55.0

Reply via email to