diff options
author | Rob Clark <robdclark@gmail.com> | 2014-10-15 23:00:47 +0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2016-02-27 17:28:44 +0300 |
commit | bcbfaaeee8f1c8796adb62c990b3e479a5ce797f (patch) | |
tree | 7479053c3d28e539de002f7c41ebf6c47d72208d | |
parent | 426c3ec8cb2d9dff76dbc34c3b19c4e681ac554e (diff) | |
download | linux-bcbfaaeee8f1c8796adb62c990b3e479a5ce797f.tar.xz |
drm/vmwgfx: respect 'nomodeset'
commit 96c5d076f0a5e2023ecdb44d8261f87641ee71e0 upstream.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index f739fcf35d74..148fa9120c5f 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -25,6 +25,7 @@ * **************************************************************************/ #include <linux/module.h> +#include <linux/console.h> #include "drmP.h" #include "vmwgfx_drv.h" @@ -1142,6 +1143,12 @@ static int vmw_probe(struct pci_dev *pdev, const struct pci_device_id *ent) static int __init vmwgfx_init(void) { int ret; + +#ifdef CONFIG_VGA_CONSOLE + if (vgacon_text_force()) + return -EINVAL; +#endif + ret = drm_pci_init(&driver, &vmw_pci_driver); if (ret) DRM_ERROR("Failed initializing DRM.\n"); |