Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269435
b: refs/heads/master
c: 99df4ee
h: refs/heads/master
i:
  269433: c30ecc7
  269431: 776298f
v: v3
  • Loading branch information
Russell King committed Sep 27, 2011
1 parent 8727d09 commit 8c6b78d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: ac3e2fa6770052a82d42fc4db194a27317518c97
refs/heads/master: 99df4ee107a85530f3d4f6d628c8a86db9b1a8b3
9 changes: 8 additions & 1 deletion trunk/drivers/video/amba-clcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ static int clcdfb_register(struct clcd_fb *fb)
goto out;
}

ret = clk_prepare(fb->clk);
if (ret)
goto free_clk;

fb->fb.device = &fb->dev->dev;

fb->fb.fix.mmio_start = fb->dev->res.start;
Expand All @@ -456,7 +460,7 @@ static int clcdfb_register(struct clcd_fb *fb)
if (!fb->regs) {
printk(KERN_ERR "CLCD: unable to remap registers\n");
ret = -ENOMEM;
goto free_clk;
goto clk_unprep;
}

fb->fb.fbops = &clcdfb_ops;
Expand Down Expand Up @@ -530,6 +534,8 @@ static int clcdfb_register(struct clcd_fb *fb)
fb_dealloc_cmap(&fb->fb.cmap);
unmap:
iounmap(fb->regs);
clk_unprep:
clk_unprepare(fb->clk);
free_clk:
clk_put(fb->clk);
out:
Expand Down Expand Up @@ -595,6 +601,7 @@ static int clcdfb_remove(struct amba_device *dev)
if (fb->fb.cmap.len)
fb_dealloc_cmap(&fb->fb.cmap);
iounmap(fb->regs);
clk_unprepare(fb->clk);
clk_put(fb->clk);

fb->board->remove(fb);
Expand Down

0 comments on commit 8c6b78d

Please sign in to comment.