Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43783
b: refs/heads/master
c: 164a765
h: refs/heads/master
i:
  43781: e5456ad
  43779: 01ecd1f
  43775: 561312c
v: v3
  • Loading branch information
Amol Lad authored and Linus Torvalds committed Dec 8, 2006
1 parent 6c25d59 commit d6e5ef3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f190017b889c45364576396a3bfa32acbb16bf2b
refs/heads/master: 164a765b9895f4f80f91cb7f1aab7539b3f8d335
20 changes: 20 additions & 0 deletions trunk/drivers/video/macfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,22 @@ void __init macfb_setup(char *options)
}
}

static void __init iounmap_macfb(void)
{
if (valkyrie_cmap_regs)
iounmap(valkyrie_cmap_regs);
if (dafb_cmap_regs)
iounmap(dafb_cmap_regs);
if (v8_brazil_cmap_regs)
iounmap(v8_brazil_cmap_regs);
if (rbv_cmap_regs)
iounmap(rbv_cmap_regs);
if (civic_cmap_regs)
iounmap(civic_cmap_regs);
if (csc_cmap_regs)
iounmap(csc_cmap_regs);
}

static int __init macfb_init(void)
{
int video_cmap_len, video_is_nubus = 0;
Expand Down Expand Up @@ -962,6 +978,10 @@ static int __init macfb_init(void)
if (!err)
printk("fb%d: %s frame buffer device\n",
fb_info.node, fb_info.fix.id);
else {
iounmap(fb_info.screen_base);
iounmap_macfb();
}
return err;
}

Expand Down

0 comments on commit d6e5ef3

Please sign in to comment.