]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/radeon/kms/legacy: only enable load detection property on DVI-I
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 30 Apr 2010 16:37:31 +0000 (12:37 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 5 May 2010 01:28:11 +0000 (11:28 +1000)
DVI-D doesn't have analog.  This matches the avivo behavior.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_connectors.c

index 1331351c517860973e2fc00bc9724bf7df89a730..4559a53d5e57e55b42994671b9e0ffe2cdc42f11 100644 (file)
@@ -1316,6 +1316,8 @@ radeon_add_legacy_connector(struct drm_device *dev,
                        radeon_connector->ddc_bus = radeon_i2c_create(dev, i2c_bus, "DVI");
                        if (!radeon_connector->ddc_bus)
                                goto failed;
+               }
+               if (connector_type == DRM_MODE_CONNECTOR_DVII) {
                        radeon_connector->dac_load_detect = true;
                        drm_connector_attach_property(&radeon_connector->base,
                                                      rdev->mode_info.load_detect_property,