|
@@ -57,13 +57,13 @@ static void omap_fb_output_poll_changed(struct drm_device *dev)
|
|
|
static void omap_atomic_wait_for_completion(struct drm_device *dev,
|
|
|
struct drm_atomic_state *old_state)
|
|
|
{
|
|
|
- struct drm_crtc_state *old_crtc_state;
|
|
|
+ struct drm_crtc_state *new_crtc_state;
|
|
|
struct drm_crtc *crtc;
|
|
|
unsigned int i;
|
|
|
int ret;
|
|
|
|
|
|
- for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) {
|
|
|
- if (!crtc->state->enable)
|
|
|
+ for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) {
|
|
|
+ if (!new_crtc_state->active)
|
|
|
continue;
|
|
|
|
|
|
ret = omap_crtc_wait_pending(crtc);
|