diff options
Diffstat (limited to 'drivers/video/da8xx-fb.c')
-rw-r--r-- | drivers/video/da8xx-fb.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index c265aed09e04..8d61ef96eedd 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c | |||
@@ -1092,9 +1092,10 @@ static int __init fb_probe(struct platform_device *device) | |||
1092 | 1092 | ||
1093 | irq_freq: | 1093 | irq_freq: |
1094 | #ifdef CONFIG_CPU_FREQ | 1094 | #ifdef CONFIG_CPU_FREQ |
1095 | lcd_da8xx_cpufreq_deregister(par); | ||
1096 | #endif | ||
1095 | err_cpu_freq: | 1097 | err_cpu_freq: |
1096 | unregister_framebuffer(da8xx_fb_info); | 1098 | unregister_framebuffer(da8xx_fb_info); |
1097 | #endif | ||
1098 | 1099 | ||
1099 | err_dealloc_cmap: | 1100 | err_dealloc_cmap: |
1100 | fb_dealloc_cmap(&da8xx_fb_info->cmap); | 1101 | fb_dealloc_cmap(&da8xx_fb_info->cmap); |
@@ -1130,14 +1131,14 @@ static int fb_suspend(struct platform_device *dev, pm_message_t state) | |||
1130 | struct fb_info *info = platform_get_drvdata(dev); | 1131 | struct fb_info *info = platform_get_drvdata(dev); |
1131 | struct da8xx_fb_par *par = info->par; | 1132 | struct da8xx_fb_par *par = info->par; |
1132 | 1133 | ||
1133 | acquire_console_sem(); | 1134 | console_lock(); |
1134 | if (par->panel_power_ctrl) | 1135 | if (par->panel_power_ctrl) |
1135 | par->panel_power_ctrl(0); | 1136 | par->panel_power_ctrl(0); |
1136 | 1137 | ||
1137 | fb_set_suspend(info, 1); | 1138 | fb_set_suspend(info, 1); |
1138 | lcd_disable_raster(); | 1139 | lcd_disable_raster(); |
1139 | clk_disable(par->lcdc_clk); | 1140 | clk_disable(par->lcdc_clk); |
1140 | release_console_sem(); | 1141 | console_unlock(); |
1141 | 1142 | ||
1142 | return 0; | 1143 | return 0; |
1143 | } | 1144 | } |
@@ -1146,14 +1147,14 @@ static int fb_resume(struct platform_device *dev) | |||
1146 | struct fb_info *info = platform_get_drvdata(dev); | 1147 | struct fb_info *info = platform_get_drvdata(dev); |
1147 | struct da8xx_fb_par *par = info->par; | 1148 | struct da8xx_fb_par *par = info->par; |
1148 | 1149 | ||
1149 | acquire_console_sem(); | 1150 | console_lock(); |
1150 | if (par->panel_power_ctrl) | 1151 | if (par->panel_power_ctrl) |
1151 | par->panel_power_ctrl(1); | 1152 | par->panel_power_ctrl(1); |
1152 | 1153 | ||
1153 | clk_enable(par->lcdc_clk); | 1154 | clk_enable(par->lcdc_clk); |
1154 | lcd_enable_raster(); | 1155 | lcd_enable_raster(); |
1155 | fb_set_suspend(info, 0); | 1156 | fb_set_suspend(info, 0); |
1156 | release_console_sem(); | 1157 | console_unlock(); |
1157 | 1158 | ||
1158 | return 0; | 1159 | return 0; |
1159 | } | 1160 | } |