Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8223
b: refs/heads/master
c: 6062bfa
h: refs/heads/master
i:
  8221: 2cf4a5d
  8219: 8c61544
  8215: 999f852
  8207: e658d8e
  8191: 08f97ba
v: v3
  • Loading branch information
Olaf Hering authored and Linus Torvalds committed Sep 9, 2005
1 parent da47fb5 commit b68a5f1
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 544393fe584d333480659a4bed30f5295355df11
refs/heads/master: 6062bfa1644f401c08e78d5c8a161f7d11c5c830
10 changes: 5 additions & 5 deletions trunk/drivers/video/savage/savagefb_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1976,12 +1976,11 @@ static int __devinit savage_init_fb_info (struct fb_info *info,
info->pixmap.buf_align = 4;
info->pixmap.access_align = 32;

fb_alloc_cmap (&info->cmap, NR_PALETTE, 0);
err = fb_alloc_cmap (&info->cmap, NR_PALETTE, 0);
if (!err)
info->flags |= FBINFO_HWACCEL_COPYAREA |
FBINFO_HWACCEL_FILLRECT |
FBINFO_HWACCEL_IMAGEBLIT;

err = 0;
}
#endif
return err;
Expand Down Expand Up @@ -2009,21 +2008,22 @@ static int __devinit savagefb_probe (struct pci_dev* dev,
if (err)
goto failed_enable;

if (pci_request_regions(dev, "savagefb")) {
if ((err = pci_request_regions(dev, "savagefb"))) {
printk(KERN_ERR "cannot request PCI regions\n");
goto failed_enable;
}

err = -ENOMEM;

if (savage_init_fb_info(info, dev, id))
if ((err = savage_init_fb_info(info, dev, id)))
goto failed_init;

err = savage_map_mmio(info);
if (err)
goto failed_mmio;

video_len = savage_init_hw(par);
/* FIXME: cant be negative */
if (video_len < 0) {
err = video_len;
goto failed_mmio;
Expand Down

0 comments on commit b68a5f1

Please sign in to comment.