aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLajos Molnar <molnar@ti.com>2010-07-14 21:51:46 -0400
committerPaolo Pisati <paolo.pisati@canonical.com>2012-08-17 04:19:01 -0400
commit8208e97c462a444d96d4c7434ce793f135f8ec49 (patch)
treea2aeca6a3920e03a0e9ac7969ce289d6de882958
parent1e9c8176b83ab3be8f9f73b3c5b4d979a11838ab (diff)
TILER: Clear PAT also when freeing mapped blocks
PAT was only cleared when freeing allocated blocks, but PAT should be cleared for both situations. Signed-off-by: Lajos Molnar <molnar@ti.com> Signed-off-by: David Sin <davidsin@ti.com>
-rw-r--r--drivers/media/video/tiler/tiler-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tiler/tiler-main.c b/drivers/media/video/tiler/tiler-main.c
index 1bd38aa2357..df5ebfaf681 100644
--- a/drivers/media/video/tiler/tiler-main.c
+++ b/drivers/media/video/tiler/tiler-main.c
@@ -559,8 +559,8 @@ static s32 _m_free(struct mem_info *mi)
559 kfree(mi->pg_ptr); 559 kfree(mi->pg_ptr);
560 } else if (mi->mem) { 560 } else if (mi->mem) {
561 tmm_free(tmm[tiler_fmt(mi->blk.phys)], mi->mem); 561 tmm_free(tmm[tiler_fmt(mi->blk.phys)], mi->mem);
562 clear_pat(tmm[tiler_fmt(mi->blk.phys)], &mi->area);
563 } 562 }
563 clear_pat(tmm[tiler_fmt(mi->blk.phys)], &mi->area);
564 564
565 /* safe deletion as list may not have been assigned */ 565 /* safe deletion as list may not have been assigned */
566 if (mi->global.next) 566 if (mi->global.next)