aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sh_mobile_lcdcfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.c')
-rw-r--r--drivers/video/sh_mobile_lcdcfb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index cff406de3d1..fc3f9662cea 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -477,6 +477,9 @@ static int sh_mobile_lcdc_start(struct sh_mobile_lcdc_priv *priv)
477 /* tell the board code to enable the panel */ 477 /* tell the board code to enable the panel */
478 for (k = 0; k < ARRAY_SIZE(priv->ch); k++) { 478 for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
479 ch = &priv->ch[k]; 479 ch = &priv->ch[k];
480 if (!ch->enabled)
481 continue;
482
480 board_cfg = &ch->cfg.board_cfg; 483 board_cfg = &ch->cfg.board_cfg;
481 if (board_cfg->display_on) 484 if (board_cfg->display_on)
482 board_cfg->display_on(board_cfg->board_data); 485 board_cfg->display_on(board_cfg->board_data);
@@ -494,6 +497,8 @@ static void sh_mobile_lcdc_stop(struct sh_mobile_lcdc_priv *priv)
494 /* clean up deferred io and ask board code to disable panel */ 497 /* clean up deferred io and ask board code to disable panel */
495 for (k = 0; k < ARRAY_SIZE(priv->ch); k++) { 498 for (k = 0; k < ARRAY_SIZE(priv->ch); k++) {
496 ch = &priv->ch[k]; 499 ch = &priv->ch[k];
500 if (!ch->enabled)
501 continue;
497 502
498 /* deferred io mode: 503 /* deferred io mode:
499 * flush frame, and wait for frame end interrupt 504 * flush frame, and wait for frame end interrupt