Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139256
b: refs/heads/master
c: bc5d8ac
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Apr 1, 2009
1 parent 2ab0de6 commit 301f9ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 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: 9e848062533207130667f6eaa748549367ccbedf
refs/heads/master: bc5d8ac02f24d68efe8e267c96dd75c0531009ab
19 changes: 7 additions & 12 deletions trunk/drivers/video/cirrusfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2090,8 +2090,6 @@ static int __devinit cirrusfb_register(struct fb_info *info)

err_dealloc_cmap:
fb_dealloc_cmap(&info->cmap);
cinfo->unmap(info);
framebuffer_release(info);
return err;
}

Expand Down Expand Up @@ -2328,18 +2326,15 @@ static int __devinit cirrusfb_zorro_register(struct zorro_dev *z,
zorro_set_drvdata(z, info);

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

if (btype == BT_PICASSO4 || board_addr > 0x01000000)
iounmap(info->screen_base);

err_unmap_regbase:
/* Parental advisory: explicit hack */
iounmap(cinfo->regbase - 0x600000);
if (btype == BT_PICASSO4)
iounmap(cinfo->regbase - 0x600000);
err_release_region:
release_region(board_addr, board_size);
err_release_fb:
Expand Down

0 comments on commit 301f9ea

Please sign in to comment.