summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/mgag200
diff options
context:
space:
mode:
authorDave Airlie2012-05-19 17:33:21 +0200
committerDave Airlie2012-05-19 17:34:16 +0200
commit4688a69dd197fd225cca669c40d67b79f669a5a6 (patch)
treebcafdae9be71dba9659fb5fb4a180687f9942d15 /drivers/gpu/drm/mgag200
parentdrm/prime: expose capability flags for userspace. (diff)
downloadkernel-qcow2-linux-4688a69dd197fd225cca669c40d67b79f669a5a6.tar.gz
kernel-qcow2-linux-4688a69dd197fd225cca669c40d67b79f669a5a6.tar.xz
kernel-qcow2-linux-4688a69dd197fd225cca669c40d67b79f669a5a6.zip
drm/cirrus/ast/mgag200: fix build without CONFIG_VGA_CONSOLE
Reported-by: Randy Dunlap Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/mgag200')
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.c b/drivers/gpu/drm/mgag200/mgag200_drv.c
index f03a636d769e..3c8e04f54713 100644
--- a/drivers/gpu/drm/mgag200/mgag200_drv.c
+++ b/drivers/gpu/drm/mgag200/mgag200_drv.c
@@ -93,8 +93,10 @@ static struct pci_driver mgag200_pci_driver = {
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;