drm/radeon/kms: fix incorrect logic in DP vs eDP connector checking.
authorDave Airlie <airlied@redhat.com>
Fri, 29 Jan 2010 05:31:47 +0000 (15:31 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 1 Feb 2010 00:12:17 +0000 (10:12 +1000)
This makes displayport work again here.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_dp.c

index 3eb0ca5b3d73406d84c070e5bf9376dd4a1c5fa9..9c023d25aad0b85536aedbdf6cb723623ba3d48f 100644 (file)
@@ -468,7 +468,7 @@ void radeon_dp_set_link_config(struct drm_connector *connector,
        struct radeon_connector *radeon_connector;
        struct radeon_connector_atom_dig *dig_connector;
 
-       if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) ||
+       if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) &&
            (connector->connector_type != DRM_MODE_CONNECTOR_eDP))
                return;
 
@@ -583,7 +583,7 @@ void dp_link_train(struct drm_encoder *encoder,
        u8 train_set[4];
        int i;
 
-       if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) ||
+       if ((connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) &&
            (connector->connector_type != DRM_MODE_CONNECTOR_eDP))
                return;