Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333550
b: refs/heads/master
c: fda7c36
h: refs/heads/master
v: v3
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Sep 11, 2012
1 parent 3453897 commit fe48178
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: 6659145746bcf01ac650c76e5736c5003c2db230
refs/heads/master: fda7c362f9ef59de6d6db67a854e1a114af0c69a
20 changes: 10 additions & 10 deletions trunk/drivers/video/omap2/omapfb/omapfb-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1961,6 +1961,16 @@ static int omapfb_create_framebuffers(struct omapfb2_device *fbdev)
}
}

for (i = 0; i < fbdev->num_fbs; i++) {
struct fb_info *fbi = fbdev->fbs[i];
struct omapfb_info *ofbi = FB2OFB(fbi);

if (ofbi->region->size == 0)
continue;

omapfb_clear_fb(fbi);
}

DBG("fb_infos initialized\n");

for (i = 0; i < fbdev->num_fbs; i++) {
Expand Down Expand Up @@ -1988,16 +1998,6 @@ static int omapfb_create_framebuffers(struct omapfb2_device *fbdev)
}
}

for (i = 0; i < fbdev->num_fbs; i++) {
struct fb_info *fbi = fbdev->fbs[i];
struct omapfb_info *ofbi = FB2OFB(fbi);

if (ofbi->region->size == 0)
continue;

omapfb_clear_fb(fbi);
}

/* Enable fb0 */
if (fbdev->num_fbs > 0) {
struct omapfb_info *ofbi = FB2OFB(fbdev->fbs[0]);
Expand Down

0 comments on commit fe48178

Please sign in to comment.