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

Reported-by: Randy Dunlap
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie
2012-05-19 16:33:21 +01:00
parent 4271a40900
commit 4688a69dd1
3 changed files with 6 additions and 0 deletions

View File

@@ -221,8 +221,10 @@ static struct drm_driver driver = {
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;