Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145342
b: refs/heads/master
c: 17663e5
h: refs/heads/master
v: v3
  • Loading branch information
Marek Szyprowski authored and Linus Torvalds committed May 29, 2009
1 parent 8ec2cee commit 2a8c278
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 8e8e8267f0a08c2415d5f51bc9a9fde6d5400619
refs/heads/master: 17663e59704bea838a9236f299104e30909a43b1
12 changes: 11 additions & 1 deletion trunk/drivers/video/s3c-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,8 @@ static int __devexit s3c_fb_remove(struct platform_device *pdev)
int win;

for (win = 0; win <= S3C_FB_MAX_WIN; win++)
s3c_fb_release_win(sfb, sfb->windows[win]);
if (sfb->windows[win])
s3c_fb_release_win(sfb, sfb->windows[win]);

iounmap(sfb->regs);

Expand Down Expand Up @@ -985,11 +986,20 @@ static int s3c_fb_suspend(struct platform_device *pdev, pm_message_t state)
static int s3c_fb_resume(struct platform_device *pdev)
{
struct s3c_fb *sfb = platform_get_drvdata(pdev);
struct s3c_fb_platdata *pd = sfb->pdata;
struct s3c_fb_win *win;
int win_no;

clk_enable(sfb->bus_clk);

/* setup registers */
writel(pd->vidcon1, sfb->regs + VIDCON1);

/* zero all windows before we do anything */
for (win_no = 0; win_no < S3C_FB_MAX_WIN; win_no++)
s3c_fb_clear_win(sfb, win_no);

/* restore framebuffers */
for (win_no = 0; win_no < S3C_FB_MAX_WIN; win_no++) {
win = sfb->windows[win_no];
if (!win)
Expand Down

0 comments on commit 2a8c278

Please sign in to comment.