Skip to content

Commit

Permalink
drm/cirrus/ast/mgag200: fix build without CONFIG_VGA_CONSOLE
Browse files Browse the repository at this point in the history
Reported-by: Randy Dunlap
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
airlied committed May 19, 2012
1 parent 4271a40 commit 4688a69
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/ast/ast_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions drivers/gpu/drm/cirrus/cirrus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions drivers/gpu/drm/mgag200/mgag200_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4688a69

Please sign in to comment.