From a07fcc9ac9821f3fd27d1d1234221e2058ddf8d9 Mon Sep 17 00:00:00 2001 From: Erik Gilling Date: Thu, 14 Oct 2010 12:46:57 -0700 Subject: [PATCH] video: tegra: ensure first video mode is marked with FB_MODE_IS_FIRST Change-Id: If3c417c670962e4ca6ff92c3bd1a388c189f11ab Signed-off-by: Erik Gilling --- drivers/video/tegra/fb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c index 746ea532661c..961e0a62d06b 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -547,6 +547,7 @@ void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info, bool (*mode_filter)(struct fb_videomode *mode)) { struct fb_event event; + struct fb_modelist *m; int i; mutex_lock(&fb_info->info->lock); @@ -568,6 +569,10 @@ void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info, } } + /* in case the first mode was not matched */ + m = list_first_entry(&fb_info->info->modelist, struct fb_modelist, list); + m->mode.flag |= FB_MODE_IS_FIRST; + fb_info->info->mode = (struct fb_videomode *) fb_find_best_display(specs, &fb_info->info->modelist); -- 2.34.1