diff options
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index d9d66846c610..81118893264c 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include "drm_fourcc.h" | 37 | #include "drm_fourcc.h" |
38 | #include "drm_crtc_helper.h" | 38 | #include "drm_crtc_helper.h" |
39 | #include "drm_fb_helper.h" | 39 | #include "drm_fb_helper.h" |
40 | #include "drm_edid.h" | ||
40 | 41 | ||
41 | static bool drm_kms_helper_poll = true; | 42 | static bool drm_kms_helper_poll = true; |
42 | module_param_named(poll, drm_kms_helper_poll, bool, 0600); | 43 | module_param_named(poll, drm_kms_helper_poll, bool, 0600); |
@@ -118,7 +119,12 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector, | |||
118 | goto prune; | 119 | goto prune; |
119 | } | 120 | } |
120 | 121 | ||
121 | count = (*connector_funcs->get_modes)(connector); | 122 | #ifdef CONFIG_DRM_LOAD_EDID_FIRMWARE |
123 | count = drm_load_edid_firmware(connector); | ||
124 | if (count == 0) | ||
125 | #endif | ||
126 | count = (*connector_funcs->get_modes)(connector); | ||
127 | |||
122 | if (count == 0 && connector->status == connector_status_connected) | 128 | if (count == 0 && connector->status == connector_status_connected) |
123 | count = drm_add_modes_noedid(connector, 1024, 768); | 129 | count = drm_add_modes_noedid(connector, 1024, 768); |
124 | if (count == 0) | 130 | if (count == 0) |