Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126384
b: refs/heads/master
c: 6405141
h: refs/heads/master
v: v3
  • Loading branch information
roel kluin authored and Linus Torvalds committed Jan 6, 2009
1 parent a15cc32 commit 7274b06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 08cc6341cc04fad45c28995db796317b5b413045
refs/heads/master: 6405141fb3d06ec4a50d054a113e3317cad054f9
7 changes: 5 additions & 2 deletions trunk/drivers/video/gbefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ static int gbefb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
{
unsigned int line_length;
struct gbe_timing_info timing;
int ret;

/* Limit bpp to 8, 16, and 32 */
if (var->bits_per_pixel <= 8)
Expand All @@ -930,8 +931,10 @@ static int gbefb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)

var->grayscale = 0; /* No grayscale for now */

if ((var->pixclock = compute_gbe_timing(var, &timing)) < 0)
return(-EINVAL);
ret = compute_gbe_timing(var, &timing);
var->pixclock = ret;
if (ret < 0)
return -EINVAL;

/* Adjust virtual resolution, if necessary */
if (var->xres > var->xres_virtual || (!ywrap && !ypan))
Expand Down

0 comments on commit 7274b06

Please sign in to comment.