Reported-by: Randy Dunlap
Signed-off-by: Dave Airlie <airlied@redhat.com>
static int __init ast_init(void)
{
+#ifdef CONFIG_VGA_CONSOLE
if (vgacon_text_force() && ast_modeset == -1)
return -EINVAL;
+#endif
if (ast_modeset == 0)
return -EINVAL;
static int __init cirrus_init(void)
{
+#ifdef CONFIG_VGA_CONSOLE
if (vgacon_text_force() && cirrus_modeset == -1)
return -EINVAL;
+#endif
if (cirrus_modeset == 0)
return -EINVAL;
static int __init mgag200_init(void)
{
+#ifdef CONFIG_VGA_CONSOLE
if (vgacon_text_force() && mgag200_modeset == -1)
return -EINVAL;
+#endif
if (mgag200_modeset == 0)
return -EINVAL;