All the drivers that used to implement the reset hook have been
converted to use atomic_create_state instead.

Remove the reset hook from drm_connector_funcs, and the code calling
it in drm_mode_config_reset(), drmm_connector_hdmi_init() and
panel_bridge_attach().

Signed-off-by: Maxime Ripard <[email protected]>
---
 drivers/gpu/drm/drm_connector.c   | 8 --------
 drivers/gpu/drm/drm_mode_config.c | 4 +---
 drivers/gpu/drm/drm_panel.c       | 2 --
 include/drm/drm_connector.h       | 9 ---------
 4 files changed, 1 insertion(+), 22 deletions(-)

diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index 893716a9e489..d66188521881 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -663,8 +663,4 @@ int drmm_connector_hdmi_init(struct drm_device *dev,
 
                connector->state = state;
-       } else if (connector->funcs->reset) {
-               connector->funcs->reset(connector);
-               if (!connector->state)
-                       return -ENOMEM;
        }
 
@@ -771,8 +767,4 @@ int drmm_connector_hdmi_ini2(struct drm_device *dev,
 
                connector->state = state;
-       } else if (connector->funcs->reset) {
-               connector->funcs->reset(connector);
-               if (!connector->state)
-                       return -ENOMEM;
        }
 
diff --git a/drivers/gpu/drm/drm_mode_config.c 
b/drivers/gpu/drm/drm_mode_config.c
index 48a56f23dadb..c1e993a78702 100644
--- a/drivers/gpu/drm/drm_mode_config.c
+++ b/drivers/gpu/drm/drm_mode_config.c
@@ -316,7 +316,5 @@ void drm_mode_config_reset(struct drm_device *dev)
        drm_connector_list_iter_begin(dev, &conn_iter);
        drm_for_each_connector_iter(connector, &conn_iter) {
-               if (connector->funcs->reset)
-                       connector->funcs->reset(connector);
-               else if (connector->funcs->atomic_create_state)
+               if (connector->funcs->atomic_create_state)
                        
drm_mode_config_connector_reset_with_create_state(connector);
        }
diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c
index 760f074f947e..c70f09a7e3e1 100644
--- a/drivers/gpu/drm/drm_panel.c
+++ b/drivers/gpu/drm/drm_panel.c
@@ -115,6 +115,4 @@ static int panel_bridge_attach(struct drm_bridge *bridge,
 
                        connector->state = conn_state;
-               } else if (connector->funcs->reset) {
-                       connector->funcs->reset(connector);
                }
 
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h
index a87cd13d0a45..f656ed8324d3 100644
--- a/include/drm/drm_connector.h
+++ b/include/drm/drm_connector.h
@@ -1659,13 +1659,4 @@ struct drm_connector_funcs {
        int (*dpms)(struct drm_connector *connector, int mode);
 
-       /**
-        * @reset:
-        *
-        * Reset connector hardware and software state to off. This function 
isn't
-        * called by the core directly, only through drm_mode_config_reset().
-        * It's not a helper hook only for historical reasons.
-        */
-       void (*reset)(struct drm_connector *connector);
-
        /**
         * @detect:

-- 
2.55.0

Reply via email to