Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105547
b: refs/heads/master
c: 89c69d2
h: refs/heads/master
i:
  105545: 1f6577c
  105543: ba8f661
v: v3
  • Loading branch information
Ville Syrjala authored and Linus Torvalds committed Jul 24, 2008
1 parent 116d530 commit e3dda7e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 6cfafc15994ac2a2377b32b5a65cf62a90a80d49
refs/heads/master: 89c69d2b8eb3ee2338fded9d70a0795b4712f112
15 changes: 10 additions & 5 deletions trunk/drivers/video/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2231,6 +2231,7 @@ static int __devinit aty_init(struct fb_info *info)
const char *ramname = NULL, *xtal;
int gtb_memsize, has_var = 0;
struct fb_var_screeninfo var;
int ret;

init_waitqueue_head(&par->vblank.wait);
spin_lock_init(&par->int_lock);
Expand Down Expand Up @@ -2612,7 +2613,8 @@ static int __devinit aty_init(struct fb_info *info)
var.yres_virtual = var.yres;
}

if (atyfb_check_var(&var, info)) {
ret = atyfb_check_var(&var, info);
if (ret) {
PRINTKE("can't set default video mode\n");
goto aty_init_exit;
}
Expand All @@ -2623,10 +2625,12 @@ static int __devinit aty_init(struct fb_info *info)
#endif /* CONFIG_FB_ATY_CT */
info->var = var;

if (fb_alloc_cmap(&info->cmap, 256, 0) < 0)
ret = fb_alloc_cmap(&info->cmap, 256, 0);
if (ret < 0)
goto aty_init_exit;

if (register_framebuffer(info) < 0) {
ret = register_framebuffer(info);
if (ret < 0) {
fb_dealloc_cmap(&info->cmap);
goto aty_init_exit;
}
Expand All @@ -2652,7 +2656,7 @@ static int __devinit aty_init(struct fb_info *info)
par->mtrr_aper = -1;
}
#endif
return -1;
return ret;
}

static void aty_resume_chip(struct fb_info *info)
Expand Down Expand Up @@ -3467,7 +3471,8 @@ static int __devinit atyfb_pci_probe(struct pci_dev *pdev, const struct pci_devi
pci_set_drvdata(pdev, info);

/* Init chip & register framebuffer */
if (aty_init(info))
rc = aty_init(info);
if (rc)
goto err_release_io;

#ifdef __sparc__
Expand Down

0 comments on commit e3dda7e

Please sign in to comment.