video: tegra: fb var info on monspecs change
authorErik Gilling <konkers@android.com>
Thu, 14 Oct 2010 21:56:05 +0000 (14:56 -0700)
committerErik Gilling <konkers@android.com>
Mon, 18 Oct 2010 19:08:26 +0000 (12:08 -0700)
activates the default mode

Change-Id: I34d27d2947377771e8f1c89f3933204d7e65364f
Signed-off-by: Erik Gilling <konkers@android.com>
drivers/video/tegra/fb.c

index 961e0a62d06bc0c9207d2de1097427baf10e775c..8e0964841cdb974d9a2bba3fb3224c97d677d645 100644 (file)
@@ -576,6 +576,9 @@ void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info,
        fb_info->info->mode = (struct fb_videomode *)
                fb_find_best_display(specs, &fb_info->info->modelist);
 
+       fb_videomode_to_var(&fb_info->info->var, fb_info->info->mode);
+       tegra_fb_set_par(fb_info->info);
+
        event.info = fb_info->info;
        fb_notifier_call_chain(FB_EVENT_NEW_MODELIST, &event);
        mutex_unlock(&fb_info->info->lock);