diff options
-rw-r--r-- | drivers/gpu/drm/i915/intel_lvds.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 506cfbdd6bab..2e266277f035 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c | |||
@@ -460,13 +460,8 @@ static int intel_lvds_get_modes(struct drm_connector *connector) | |||
460 | struct drm_display_mode *mode; | 460 | struct drm_display_mode *mode; |
461 | 461 | ||
462 | /* use cached edid if we have one */ | 462 | /* use cached edid if we have one */ |
463 | if (lvds_connector->base.edid) { | 463 | if (!IS_ERR_OR_NULL(lvds_connector->base.edid)) |
464 | /* invalid edid */ | ||
465 | if (IS_ERR(lvds_connector->base.edid)) | ||
466 | return 0; | ||
467 | |||
468 | return drm_add_edid_modes(connector, lvds_connector->base.edid); | 464 | return drm_add_edid_modes(connector, lvds_connector->base.edid); |
469 | } | ||
470 | 465 | ||
471 | mode = drm_mode_duplicate(dev, lvds_connector->base.panel.fixed_mode); | 466 | mode = drm_mode_duplicate(dev, lvds_connector->base.panel.fixed_mode); |
472 | if (mode == NULL) | 467 | if (mode == NULL) |