aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/da8xx-fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/da8xx-fb.c')
-rw-r--r--drivers/video/da8xx-fb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index 520047ac6e3e..8d61ef96eedd 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -1131,14 +1131,14 @@ static int fb_suspend(struct platform_device *dev, pm_message_t state)
1131 struct fb_info *info = platform_get_drvdata(dev); 1131 struct fb_info *info = platform_get_drvdata(dev);
1132 struct da8xx_fb_par *par = info->par; 1132 struct da8xx_fb_par *par = info->par;
1133 1133
1134 acquire_console_sem(); 1134 console_lock();
1135 if (par->panel_power_ctrl) 1135 if (par->panel_power_ctrl)
1136 par->panel_power_ctrl(0); 1136 par->panel_power_ctrl(0);
1137 1137
1138 fb_set_suspend(info, 1); 1138 fb_set_suspend(info, 1);
1139 lcd_disable_raster(); 1139 lcd_disable_raster();
1140 clk_disable(par->lcdc_clk); 1140 clk_disable(par->lcdc_clk);
1141 release_console_sem(); 1141 console_unlock();
1142 1142
1143 return 0; 1143 return 0;
1144} 1144}
@@ -1147,14 +1147,14 @@ static int fb_resume(struct platform_device *dev)
1147 struct fb_info *info = platform_get_drvdata(dev); 1147 struct fb_info *info = platform_get_drvdata(dev);
1148 struct da8xx_fb_par *par = info->par; 1148 struct da8xx_fb_par *par = info->par;
1149 1149
1150 acquire_console_sem(); 1150 console_lock();
1151 if (par->panel_power_ctrl) 1151 if (par->panel_power_ctrl)
1152 par->panel_power_ctrl(1); 1152 par->panel_power_ctrl(1);
1153 1153
1154 clk_enable(par->lcdc_clk); 1154 clk_enable(par->lcdc_clk);
1155 lcd_enable_raster(); 1155 lcd_enable_raster();
1156 fb_set_suspend(info, 0); 1156 fb_set_suspend(info, 0);
1157 release_console_sem(); 1157 console_unlock();
1158 1158
1159 return 0; 1159 return 0;
1160} 1160}