drm/radeon/kms: fix legacy quirk handling
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 16 Oct 2009 03:08:05 +0000 (23:08 -0400)
committerDave Airlie <airlied@linux.ie>
Fri, 16 Oct 2009 08:31:28 +0000 (18:31 +1000)
Need to check the return type for the quirk function
to decide whether we add the connectors and encoders.

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

index e91aba8530b621ef201e977753e84f44ec892dd7..3c402b957f07ce302210ed035745fd351b7db7dc 100644 (file)
@@ -1626,8 +1626,9 @@ bool radeon_get_legacy_connector_info_from_bios(struct drm_device *dev)
                                break;
                        }
 
-                       radeon_apply_legacy_quirks(dev, i, &connector,
-                                                  &ddc_i2c);
+                       if (!radeon_apply_legacy_quirks(dev, i, &connector,
+                                                      &ddc_i2c))
+                               continue;
 
                        switch (connector) {
                        case CONNECTOR_PROPRIETARY_LEGACY: