Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284870
b: refs/heads/master
c: f934fbd
h: refs/heads/master
v: v3
  • Loading branch information
Timur Tabi authored and Florian Tobias Schandinat committed Jan 3, 2012
1 parent d9485ed commit 8cbd4c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 56bba8cb4218b2646a1d80c100bad689f93fef79
refs/heads/master: f934fbd6ba5af5d9328e642794be2842e538d1c6
25 changes: 8 additions & 17 deletions trunk/drivers/video/fsl-diu-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1220,21 +1220,6 @@ static struct fb_ops fsl_diu_ops = {
.fb_release = fsl_diu_release,
};

static int init_fbinfo(struct fb_info *info)
{
struct mfb_info *mfbi = info->par;

info->device = NULL;
info->var.activate = FB_ACTIVATE_NOW;
info->fbops = &fsl_diu_ops;
info->flags = FBINFO_FLAG_DEFAULT;
info->pseudo_palette = &mfbi->pseudo_palette;

/* Allocate colormap */
fb_alloc_cmap(&info->cmap, 16, 0);
return 0;
}

static int __devinit install_fb(struct fb_info *info)
{
int rc;
Expand All @@ -1244,8 +1229,14 @@ static int __devinit install_fb(struct fb_info *info)
unsigned int dbsize = ARRAY_SIZE(fsl_diu_mode_db);
int has_default_mode = 1;

if (init_fbinfo(info))
return -EINVAL;
info->var.activate = FB_ACTIVATE_NOW;
info->fbops = &fsl_diu_ops;
info->flags = FBINFO_DEFAULT;
info->pseudo_palette = mfbi->pseudo_palette;

rc = fb_alloc_cmap(&info->cmap, 16, 0);
if (rc)
return rc;

if (mfbi->index == PLANE0) {
if (mfbi->edid_data) {
Expand Down

0 comments on commit 8cbd4c4

Please sign in to comment.