Merge branch 'fbdev-driver-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6 into fbdev-fixes-for-linus

+16 -10
+4 -1
drivers/video/sh_mobile_hdmi.c
··· 1071 1071 if (!hdmi->info) 1072 1072 goto out; 1073 1073 1074 + hdmi->monspec.modedb_len = 0; 1075 + fb_destroy_modedb(hdmi->monspec.modedb); 1076 + hdmi->monspec.modedb = NULL; 1077 + 1074 1078 acquire_console_sem(); 1075 1079 1076 1080 /* HDMI disconnect */ ··· 1082 1078 1083 1079 release_console_sem(); 1084 1080 pm_runtime_put(hdmi->dev); 1085 - fb_destroy_modedb(hdmi->monspec.modedb); 1086 1081 } 1087 1082 1088 1083 out:
+12 -9
drivers/video/sh_mobile_lcdcfb.c
··· 115 115 .xres = 1280, 116 116 .yres = 720, 117 117 118 - .left_margin = 200, 119 - .right_margin = 88, 120 - .hsync_len = 48, 118 + .left_margin = 220, 119 + .right_margin = 110, 120 + .hsync_len = 40, 121 121 122 122 .upper_margin = 20, 123 123 .lower_margin = 5, 124 124 .vsync_len = 5, 125 125 126 126 .pixclock = 13468, 127 + .refresh = 60, 127 128 .sync = FB_SYNC_VERT_HIGH_ACT | FB_SYNC_HOR_HIGH_ACT, 128 129 }; 129 130 ··· 1198 1197 const struct fb_videomode *mode = cfg->lcd_cfg; 1199 1198 unsigned long max_size = 0; 1200 1199 int k; 1200 + int num_cfg; 1201 1201 1202 1202 ch->info = framebuffer_alloc(0, &pdev->dev); 1203 1203 if (!ch->info) { ··· 1234 1232 info->fix = sh_mobile_lcdc_fix; 1235 1233 info->fix.smem_len = max_size * (cfg->bpp / 8) * 2; 1236 1234 1237 - if (!mode) 1235 + if (!mode) { 1238 1236 mode = &default_720p; 1237 + num_cfg = 1; 1238 + } else { 1239 + num_cfg = ch->cfg.num_cfg; 1240 + } 1241 + 1242 + fb_videomode_to_modelist(mode, num_cfg, &info->modelist); 1239 1243 1240 1244 fb_videomode_to_var(var, mode); 1241 1245 /* Default Y virtual resolution is 2x panel size */ ··· 1289 1281 1290 1282 for (i = 0; i < j; i++) { 1291 1283 struct sh_mobile_lcdc_chan *ch = priv->ch + i; 1292 - const struct fb_videomode *mode = ch->cfg.lcd_cfg; 1293 - 1294 - if (!mode) 1295 - mode = &default_720p; 1296 1284 1297 1285 info = ch->info; 1298 1286 ··· 1301 1297 } 1302 1298 } 1303 1299 1304 - fb_videomode_to_modelist(mode, ch->cfg.num_cfg, &info->modelist); 1305 1300 error = register_framebuffer(info); 1306 1301 if (error < 0) 1307 1302 goto err1;