diff options
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 13441e21117c..ce274edb9e52 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -229,9 +229,9 @@ int drm_crtc_init_with_planes(struct drm_device *dev, struct drm_crtc *crtc, | |||
229 | 229 | ||
230 | crtc->primary = primary; | 230 | crtc->primary = primary; |
231 | crtc->cursor = cursor; | 231 | crtc->cursor = cursor; |
232 | if (primary) | 232 | if (primary && !primary->possible_crtcs) |
233 | primary->possible_crtcs = 1 << drm_crtc_index(crtc); | 233 | primary->possible_crtcs = 1 << drm_crtc_index(crtc); |
234 | if (cursor) | 234 | if (cursor && !cursor->possible_crtcs) |
235 | cursor->possible_crtcs = 1 << drm_crtc_index(crtc); | 235 | cursor->possible_crtcs = 1 << drm_crtc_index(crtc); |
236 | 236 | ||
237 | ret = drm_crtc_crc_init(crtc); | 237 | ret = drm_crtc_crc_init(crtc); |