diff options
author | Lajos Molnar <molnar@ti.com> | 2011-04-07 08:41:47 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-04-07 08:41:47 +0100 |
commit | 7ea6fdee2533b2efff8bf7957f54a008797dd822 (patch) | |
tree | d05a21aa5a5eacf2820d9dabf20bb38a811a08fa /drivers/media/video/tiler | |
parent | 6f37bbde14ed531f4e8afd7a71cf19a6e4f2cb35 (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>
Diffstat (limited to 'drivers/media/video/tiler')
-rw-r--r-- | drivers/media/video/tiler/tiler-main.c | 2 |
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) kfree(mi->pg_ptr); } else if (mi->mem) { tmm_free(tmm[tiler_fmt(mi->blk.phys)], mi->mem); - clear_pat(tmm[tiler_fmt(mi->blk.phys)], &mi->area); } + clear_pat(tmm[tiler_fmt(mi->blk.phys)], &mi->area); /* safe deletion as list may not have been assigned */ if (mi->global.next) |