Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310252
b: refs/heads/master
c: 4e0dd49
h: refs/heads/master
v: v3
  • Loading branch information
Jingoo Han authored and Florian Tobias Schandinat committed Apr 16, 2012
1 parent 501a6b0 commit 56325e2
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 366ee7c2289cc307259166fe8c2f093920c1e575
refs/heads/master: 4e0dd49d2c4bc10d56bc536113c16f165c0edeb3
9 changes: 9 additions & 0 deletions trunk/drivers/video/s3c-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1557,6 +1557,8 @@ static int s3c_fb_suspend(struct device *dev)
struct s3c_fb_win *win;
int win_no;

pm_runtime_get_sync(sfb->dev);

for (win_no = S3C_FB_MAX_WIN - 1; win_no >= 0; win_no--) {
win = sfb->windows[win_no];
if (!win)
Expand All @@ -1570,6 +1572,9 @@ static int s3c_fb_suspend(struct device *dev)
clk_disable(sfb->lcd_clk);

clk_disable(sfb->bus_clk);

pm_runtime_put_sync(sfb->dev);

return 0;
}

Expand All @@ -1582,6 +1587,8 @@ static int s3c_fb_resume(struct device *dev)
int win_no;
u32 reg;

pm_runtime_get_sync(sfb->dev);

clk_enable(sfb->bus_clk);

if (!sfb->variant.has_clksel)
Expand Down Expand Up @@ -1628,6 +1635,8 @@ static int s3c_fb_resume(struct device *dev)
s3c_fb_set_par(win->fbinfo);
}

pm_runtime_put_sync(sfb->dev);

return 0;
}
#endif
Expand Down

0 comments on commit 56325e2

Please sign in to comment.