From d3699138a96c2a8871d21b24a3bd9a3c19b1cd57 Mon Sep 17 00:00:00 2001 From: zwl Date: Mon, 26 May 2014 21:30:16 +0800 Subject: [PATCH] rk fb: add ion unmap for fb --- drivers/video/rockchip/rk_fb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index 95a35919d6c6..b3cfd9192fbe 100755 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -1283,8 +1283,10 @@ void rk_fb_free_dma_buf(struct rk_lcdc_driver *dev_drv,struct rk_fb_reg_win_data freed_addr[freed_index++] = area_data->smem_start; } #endif - if(area_data->ion_handle != NULL) + if (area_data->ion_handle != NULL) { + ion_unmap_kernel(rk_fb->ion_client, area_data->ion_handle); ion_free(rk_fb->ion_client, area_data->ion_handle); + } if(area_data->acq_fence) { sync_fence_put(area_data->acq_fence); } -- 2.34.1