]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: don't call drm_connector_register for non-MST ports
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Feb 2020 22:02:34 +0000 (17:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Feb 2020 19:21:13 +0000 (14:21 -0500)
The core does this for us now.

Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
drivers/gpu/drm/amd/amdgpu/dce_virtual.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index a62cbc8199de0a6ce786238908a7fb4a98b3f810..ec1501e3a63a6b5d38067e165e57e7f47344c2d5 100644 (file)
@@ -1931,7 +1931,6 @@ amdgpu_connector_add(struct amdgpu_device *adev,
                connector->polled = DRM_CONNECTOR_POLL_HPD;
 
        connector->display_info.subpixel_order = subpixel_order;
-       drm_connector_register(connector);
 
        if (has_aux)
                amdgpu_atombios_dp_aux_init(amdgpu_connector);
index e4f94863332c1caf47f97d80c7b68198cea0b954..3c9f2d2490a53a4e3685b5fd6a254faf5f426939 100644 (file)
@@ -609,7 +609,6 @@ static int dce_virtual_connector_encoder_init(struct amdgpu_device *adev,
        connector->display_info.subpixel_order = SubPixelHorizontalRGB;
        connector->interlace_allowed = false;
        connector->doublescan_allowed = false;
-       drm_connector_register(connector);
 
        /* link them */
        drm_connector_attach_encoder(connector, encoder);
index 58fc678b7902fd65f2f40a66b47ce92cf06c4ebd..73bb36c63ea8aa889d4ccf60d41fd3d103b77312 100644 (file)
@@ -5972,7 +5972,6 @@ static int amdgpu_dm_connector_init(struct amdgpu_display_manager *dm,
        drm_connector_attach_encoder(
                &aconnector->base, &aencoder->base);
 
-       drm_connector_register(&aconnector->base);
 #if defined(CONFIG_DEBUG_FS)
        connector_debugfs_init(aconnector);
        aconnector->debugfs_dpcd_address = 0;