mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
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:
parent
4271a40900
commit
4688a69dd1
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user