Skip to content
Snippets Groups Projects
Commit b005f53e authored by Michael Gebhard's avatar Michael Gebhard
Browse files

fb: remove unused buffer

parent 0a36884f
No related branches found
No related tags found
No related merge requests found
......@@ -155,11 +155,6 @@ int it8951_fb_register(struct rect screen_geom, struct it8951_ops ops, struct de
status = -ENOMEM;
goto err;
}
data->buf = (uint8_t *)vzalloc(fb_size);
if (!data->buf) {
status = -ENOMEM;
goto err_buf;
}
fb_info->fbops = &it8951_fb_ops;
fb_info->var = fb_var;
fb_info->var.xres = DEFAULT_DPY_W;
......@@ -221,8 +216,6 @@ err_register:
err_cmap:
fb_dealloc_cmap(&fb_info->cmap);
err_fb:
vfree(data->buf);
err_buf:
vfree(fb_info->screen_base);
err:
framebuffer_release(fb_info);
......@@ -235,7 +228,6 @@ int it8951_fb_unregister(struct it8951_fb_data *data) {
unregister_framebuffer(fb_info);
drain_workqueue(data->wq);
fb_dealloc_cmap(&fb_info->cmap);
vfree(data->buf);
vfree(fb_info->screen_base);
framebuffer_release(fb_info);
return 0;
......
......@@ -81,7 +81,6 @@ struct it8951_fb_data {
atomic64_t last_update;
struct it8951_ops ops;
struct device *dev;
uint8_t *buf;
};
int it8951_fb_register(struct rect screen_geom, struct it8951_ops ops, struct device *dev, struct it8951_fb_data **fb_drvp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment