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.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index 03ee3826fb62..5a19ef3f215c 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -338,8 +338,14 @@ static void sh_mobile_lcdc_display_on(struct sh_mobile_lcdc_chan *ch)
338 struct sh_mobile_lcdc_panel_cfg *panel = &ch->cfg.panel_cfg; 338 struct sh_mobile_lcdc_panel_cfg *panel = &ch->cfg.panel_cfg;
339 339
340 if (ch->tx_dev) { 340 if (ch->tx_dev) {
341 if (ch->tx_dev->ops->display_on(ch->tx_dev) < 0) 341 int ret;
342
343 ret = ch->tx_dev->ops->display_on(ch->tx_dev);
344 if (ret < 0)
342 return; 345 return;
346
347 if (ret == SH_MOBILE_LCDC_DISPLAY_DISCONNECTED)
348 ch->info->state = FBINFO_STATE_SUSPENDED;
343 } 349 }
344 350
345 /* HDMI must be enabled before LCDC configuration */ 351 /* HDMI must be enabled before LCDC configuration */