aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/omap2/dss/apply.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c
index 7919ff384749..ba1f73c136ce 100644
--- a/drivers/video/omap2/dss/apply.c
+++ b/drivers/video/omap2/dss/apply.c
@@ -399,7 +399,6 @@ void dss_mgr_start_update(struct omap_overlay_manager *mgr)
399 struct manager_cache_data *mc; 399 struct manager_cache_data *mc;
400 struct overlay_cache_data *oc; 400 struct overlay_cache_data *oc;
401 const int num_ovls = dss_feat_get_num_ovls(); 401 const int num_ovls = dss_feat_get_num_ovls();
402 const int num_mgrs = dss_feat_get_num_mgrs();
403 int i; 402 int i;
404 403
405 mc = &dss_cache.manager_cache[mgr->id]; 404 mc = &dss_cache.manager_cache[mgr->id];
@@ -416,13 +415,8 @@ void dss_mgr_start_update(struct omap_overlay_manager *mgr)
416 oc->shadow_dirty = false; 415 oc->shadow_dirty = false;
417 } 416 }
418 417
419 for (i = 0; i < num_mgrs; ++i) { 418 mc = &dss_cache.manager_cache[mgr->id];
420 mc = &dss_cache.manager_cache[i]; 419 mc->shadow_dirty = false;
421 if (mgr->id != i)
422 continue;
423
424 mc->shadow_dirty = false;
425 }
426 420
427 dispc_mgr_enable(mgr->id, true); 421 dispc_mgr_enable(mgr->id, true);
428} 422}