The patch titled fb: modedb uses wrong default_mode has been removed from the -mm tree. Its filename was video-get-the-default-mode-from-the-right-database-fb-modedb-uses-wrong-default_mode.patch This patch was dropped because it was folded into video-get-the-default-mode-from-the-right-database.patch ------------------------------------------------------ Subject: fb: modedb uses wrong default_mode From: Tero Roponen <teanropo@xxxxxx> It seems that default_mode is always overwritten in fb_find_mode() if caller gives its own modedb; this patch should fix it. dmesg diff before and after the following patch: neofb: mapped framebuffer at c4a80000 -Mode (640x400) won't display properly on LCD -Mode (640x400) won't display properly on LCD -neofb v0.4.2: 2048kB VRAM, using 640x480, 31.469kHz, 59Hz -Console: switching to colour frame buffer device 80x30 +neofb v0.4.2: 2048kB VRAM, using 800x600, 37.878kHz, 60Hz +Console: switching to colour frame buffer device 100x37 fb0: MagicGraph 128XD frame buffer device Signed-off-by: Tero Roponen <teanropo@xxxxxx> Cc: Jordan Crouse <jordan.crouse@xxxxxxx> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: "Antonino A. Daplas" <adaplas@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/video/modedb.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff -puN drivers/video/modedb.c~video-get-the-default-mode-from-the-right-database-fb-modedb-uses-wrong-default_mode drivers/video/modedb.c --- a/drivers/video/modedb.c~video-get-the-default-mode-from-the-right-database-fb-modedb-uses-wrong-default_mode +++ a/drivers/video/modedb.c @@ -505,10 +505,9 @@ int fb_find_mode(struct fb_var_screeninf db = modedb; dbsize = ARRAY_SIZE(modedb); } - if (!default_mode && db != modedb) - default_mode = &db[0]; - else - default_mode = &modedb[DEFAULT_MODEDB_INDEX]; + + if (!default_mode) + default_mode = &db[DEFAULT_MODEDB_INDEX]; if (!default_bpp) default_bpp = 8; _ Patches currently in -mm which might be from teanropo@xxxxxx are video-get-the-default-mode-from-the-right-database.patch video-get-the-default-mode-from-the-right-database-fb-modedb-uses-wrong-default_mode.patch video-get-the-default-mode-from-the-right-database-fb-modedb-uses-wrong-default_mode-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html