fbdev: use framebuffer_release() for freeing fb_info structures

Use the framebuffer_release() for freeing fb_info structures allocated
with framebuffer_alloc().

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
此提交包含在:
Krzysztof Helt
2009-06-16 15:34:36 -07:00
提交者 Linus Torvalds
父節點 f73323de5a
當前提交 491bcc9bf5
共有 4 個檔案被更改,包括 5 行新增5 行删除

查看文件

@@ -493,7 +493,7 @@ static void __init offb_init_fb(const char *name, const char *full_name,
iounmap(par->cmap_adr);
par->cmap_adr = NULL;
iounmap(info->screen_base);
kfree(info);
framebuffer_release(info);
release_mem_region(res_start, res_size);
return;
}