Commit 4688a69d authored by Dave Airlie's avatar Dave Airlie

drm/cirrus/ast/mgag200: fix build without CONFIG_VGA_CONSOLE

Reported-by: Randy Dunlap
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 4271a409
...@@ -221,8 +221,10 @@ static struct drm_driver driver = { ...@@ -221,8 +221,10 @@ static struct drm_driver driver = {
static int __init ast_init(void) static int __init ast_init(void)
{ {
#ifdef CONFIG_VGA_CONSOLE
if (vgacon_text_force() && ast_modeset == -1) if (vgacon_text_force() && ast_modeset == -1)
return -EINVAL; return -EINVAL;
#endif
if (ast_modeset == 0) if (ast_modeset == 0)
return -EINVAL; return -EINVAL;
......
...@@ -84,8 +84,10 @@ static struct pci_driver cirrus_pci_driver = { ...@@ -84,8 +84,10 @@ static struct pci_driver cirrus_pci_driver = {
static int __init cirrus_init(void) static int __init cirrus_init(void)
{ {
#ifdef CONFIG_VGA_CONSOLE
if (vgacon_text_force() && cirrus_modeset == -1) if (vgacon_text_force() && cirrus_modeset == -1)
return -EINVAL; return -EINVAL;
#endif
if (cirrus_modeset == 0) if (cirrus_modeset == 0)
return -EINVAL; return -EINVAL;
......
...@@ -93,8 +93,10 @@ static struct pci_driver mgag200_pci_driver = { ...@@ -93,8 +93,10 @@ static struct pci_driver mgag200_pci_driver = {
static int __init mgag200_init(void) static int __init mgag200_init(void)
{ {
#ifdef CONFIG_VGA_CONSOLE
if (vgacon_text_force() && mgag200_modeset == -1) if (vgacon_text_force() && mgag200_modeset == -1)
return -EINVAL; return -EINVAL;
#endif
if (mgag200_modeset == 0) if (mgag200_modeset == 0)
return -EINVAL; return -EINVAL;
......
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