diff options
author | Dave Airlie <airlied@redhat.com> | 2012-05-19 16:33:21 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-19 16:34:16 +0100 |
commit | 4688a69dd197fd225cca669c40d67b79f669a5a6 (patch) | |
tree | bcafdae9be71dba9659fb5fb4a180687f9942d15 /drivers/gpu/drm/cirrus/cirrus_drv.c | |
parent | 4271a4090068f9dec3784205391c59540130b132 (diff) | |
download | op-kernel-dev-4688a69dd197fd225cca669c40d67b79f669a5a6.zip op-kernel-dev-4688a69dd197fd225cca669c40d67b79f669a5a6.tar.gz |
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/cirrus/cirrus_drv.c')
-rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.c b/drivers/gpu/drm/cirrus/cirrus_drv.c index 2e1f925..d703823 100644 --- a/drivers/gpu/drm/cirrus/cirrus_drv.c +++ b/drivers/gpu/drm/cirrus/cirrus_drv.c @@ -84,8 +84,10 @@ static struct pci_driver cirrus_pci_driver = { 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; |