Commit f13cc8f4 authored by David S. Miller's avatar David S. Miller

[SPARC]: Fix video mode probing in atyfb driver.

On Sparc, if the user does not specify a mode option, we
should use the PROM probed values in default_var always.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3477f765
...@@ -2511,7 +2511,15 @@ static int __init aty_init(struct fb_info *info, const char *name) ...@@ -2511,7 +2511,15 @@ static int __init aty_init(struct fb_info *info, const char *name)
} }
} else } else
#endif /* !CONFIG_PPC */ #endif /* !CONFIG_PPC */
if (!fb_find_mode(&var, info, mode, NULL, 0, &defmode, 8)) if (
#if defined(CONFIG_SPARC32) || defined(CONFIG_SPARC64)
/* On Sparc, unless the user gave a specific mode
* specification, use the PROM probed values in
* default_var.
*/
!mode ||
#endif
!fb_find_mode(&var, info, mode, NULL, 0, &defmode, 8))
var = default_var; var = default_var;
if (noaccel) if (noaccel)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment