diff options
| -rw-r--r-- | drivers/video/sh_mobile_lcdcfb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index 8f24564f77b0..07f22b625632 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c | |||
| @@ -481,6 +481,9 @@ static int sh_mobile_lcdc_start(struct sh_mobile_lcdc_priv *priv) | |||
| 481 | /* tell the board code to enable the panel */ | 481 | /* tell the board code to enable the panel */ |
| 482 | for (k = 0; k < ARRAY_SIZE(priv->ch); k++) { | 482 | for (k = 0; k < ARRAY_SIZE(priv->ch); k++) { |
| 483 | ch = &priv->ch[k]; | 483 | ch = &priv->ch[k]; |
| 484 | if (!ch->enabled) | ||
| 485 | continue; | ||
| 486 | |||
| 484 | board_cfg = &ch->cfg.board_cfg; | 487 | board_cfg = &ch->cfg.board_cfg; |
| 485 | if (board_cfg->display_on) | 488 | if (board_cfg->display_on) |
| 486 | board_cfg->display_on(board_cfg->board_data); | 489 | board_cfg->display_on(board_cfg->board_data); |
| @@ -498,6 +501,8 @@ static void sh_mobile_lcdc_stop(struct sh_mobile_lcdc_priv *priv) | |||
| 498 | /* clean up deferred io and ask board code to disable panel */ | 501 | /* clean up deferred io and ask board code to disable panel */ |
| 499 | for (k = 0; k < ARRAY_SIZE(priv->ch); k++) { | 502 | for (k = 0; k < ARRAY_SIZE(priv->ch); k++) { |
| 500 | ch = &priv->ch[k]; | 503 | ch = &priv->ch[k]; |
| 504 | if (!ch->enabled) | ||
| 505 | continue; | ||
| 501 | 506 | ||
| 502 | /* deferred io mode: | 507 | /* deferred io mode: |
| 503 | * flush frame, and wait for frame end interrupt | 508 | * flush frame, and wait for frame end interrupt |
