Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145198
b: refs/heads/master
c: 8e9bb19
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed May 22, 2009
1 parent a2a7052 commit 009b394
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 37869fa2da1a952ed736858f8b9e45c0b9131ae9
refs/heads/master: 8e9bb19ef97d6594e735bee64b6d72103e350854
7 changes: 6 additions & 1 deletion trunk/drivers/video/sh_mobile_lcdcfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct sh_mobile_lcdc_priv {
#endif
unsigned long lddckr;
struct sh_mobile_lcdc_chan ch[2];
int started;
};

/* shared registers */
Expand Down Expand Up @@ -451,6 +452,7 @@ static int sh_mobile_lcdc_start(struct sh_mobile_lcdc_priv *priv)

/* start the lcdc */
sh_mobile_lcdc_start_stop(priv, 1);
priv->started = 1;

/* tell the board code to enable the panel */
for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
Expand Down Expand Up @@ -493,7 +495,10 @@ static void sh_mobile_lcdc_stop(struct sh_mobile_lcdc_priv *priv)
}

/* stop the lcdc */
sh_mobile_lcdc_start_stop(priv, 0);
if (priv->started) {
sh_mobile_lcdc_start_stop(priv, 0);
priv->started = 0;
}

/* stop clocks */
for (k = 0; k < ARRAY_SIZE(priv->ch); k++)
Expand Down

0 comments on commit 009b394

Please sign in to comment.