diff options
| -rw-r--r-- | drivers/video/via/viafbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c index 1082541358f0..ab3955264559 100644 --- a/drivers/video/via/viafbdev.c +++ b/drivers/video/via/viafbdev.c | |||
| @@ -234,6 +234,7 @@ static int viafb_set_par(struct fb_info *info) | |||
| 234 | struct VideoModeTable *vmode_entry, *vmode_entry1 = NULL; | 234 | struct VideoModeTable *vmode_entry, *vmode_entry1 = NULL; |
| 235 | DEBUG_MSG(KERN_INFO "viafb_set_par!\n"); | 235 | DEBUG_MSG(KERN_INFO "viafb_set_par!\n"); |
| 236 | 236 | ||
| 237 | viafb_update_fix(info); | ||
| 237 | viapar->depth = fb_get_color_depth(&info->var, &info->fix); | 238 | viapar->depth = fb_get_color_depth(&info->var, &info->fix); |
| 238 | viafb_update_device_setting(viafbinfo->var.xres, viafbinfo->var.yres, | 239 | viafb_update_device_setting(viafbinfo->var.xres, viafbinfo->var.yres, |
| 239 | viafbinfo->var.bits_per_pixel, viafb_refresh, 0); | 240 | viafbinfo->var.bits_per_pixel, viafb_refresh, 0); |
| @@ -257,7 +258,6 @@ static int viafb_set_par(struct fb_info *info) | |||
| 257 | } | 258 | } |
| 258 | 259 | ||
| 259 | if (vmode_entry) { | 260 | if (vmode_entry) { |
| 260 | viafb_update_fix(info); | ||
| 261 | if (viafb_dual_fb && viapar->iga_path == IGA2) | 261 | if (viafb_dual_fb && viapar->iga_path == IGA2) |
| 262 | viafb_bpp1 = info->var.bits_per_pixel; | 262 | viafb_bpp1 = info->var.bits_per_pixel; |
| 263 | else | 263 | else |
