/* mx3fb_unmap_video_memory() - de-allocate frame buffer memory. @fbi: framebuffer information pointer  */
static int mx3fb_unmap_video_memory(struct fb_info *fbi)
/* mx3fb_unmap_video_memory() - de-allocate frame buffer memory. @fbi: framebuffer information pointer  */
static int mx3fb_unmap_video_memory(struct fb_info *fbi)
{
	dma_free_writecombine(fbi->device, fbi->fix.smem_len,
			      fbi->screen_base, fbi->fix.smem_start);
	fbi->screen_base = 0;
	mutex_lock(&fbi->mm_lock);
	fbi->fix.smem_start = 0;
	fbi->fix.smem_len = 0;
	mutex_unlock(&fbi->mm_lock);
	return 0;
}