Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43788
b: refs/heads/master
c: d8b8c0a
h: refs/heads/master
v: v3
  • Loading branch information
Amol Lad authored and Linus Torvalds committed Dec 8, 2006
1 parent 481a438 commit 68108a1
Show file tree
Hide file tree
Showing 2 changed files with 14 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: d02abed8aa6bd37abcd802de64a63ed2af5e18ff
refs/heads/master: d8b8c0a697d60c7d58a3dbda2d78553fd27727b3
15 changes: 13 additions & 2 deletions trunk/drivers/video/cirrusfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2442,7 +2442,10 @@ static int cirrusfb_pci_register (struct pci_dev *pdev,
printk ("Cirrus Logic chipset on PCI bus\n");
pci_set_drvdata(pdev, info);

return cirrusfb_register(cinfo);
ret = cirrusfb_register(cinfo);
if (ret)
iounmap(cinfo->fbmem);
return ret;

err_release_legacy:
if (release_io_ports)
Expand Down Expand Up @@ -2574,7 +2577,15 @@ static int cirrusfb_zorro_register(struct zorro_dev *z,
printk (KERN_INFO "Cirrus Logic chipset on Zorro bus\n");
zorro_set_drvdata(z, info);

return cirrusfb_register(cinfo);
ret = cirrusfb_register(cinfo);
if (ret) {
if (btype == BT_PICASSO4) {
iounmap(cinfo->fbmem);
iounmap(cinfo->regbase - 0x600000);
} else if (board_addr > 0x01000000)
iounmap(cinfo->fbmem);
}
return ret;

err_unmap_regbase:
/* Parental advisory: explicit hack */
Expand Down

0 comments on commit 68108a1

Please sign in to comment.