drm/amdgpu/display: don't call drm_dp_mst_connector_late_register (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 18:39:44 +0000 (13:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Feb 2020 19:21:13 +0000 (14:21 -0500)
Nothing else calls it.  Not sure it's necessary.

v2: remove unused port variable.

Reviewed-by: Jerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c

index d7a7dc0c256ee4591c9dffc056776724d55b65b5..0ef0eeb167785fb5d212cfca69711131971ac2ca 100644 (file)
@@ -154,7 +154,6 @@ amdgpu_dm_mst_connector_late_register(struct drm_connector *connector)
 {
        struct amdgpu_dm_connector *amdgpu_dm_connector =
                to_amdgpu_dm_connector(connector);
-       struct drm_dp_mst_port *port = amdgpu_dm_connector->port;
        int r;
 
        amdgpu_dm_connector->dm_dp_aux.aux.dev = connector->kdev;
@@ -166,7 +165,7 @@ amdgpu_dm_mst_connector_late_register(struct drm_connector *connector)
        connector_debugfs_init(amdgpu_dm_connector);
 #endif
 
-       return drm_dp_mst_connector_late_register(connector, port);
+       return r;
 }
 
 static void