aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2014-10-15 15:00:47 -0400
committerDave Airlie <airlied@redhat.com>2016-01-28 19:03:44 -0500
commit96c5d076f0a5e2023ecdb44d8261f87641ee71e0 (patch)
tree65def3c98cce20a69dbc23c591b2e9107bf8a91b
parent2ad14a6ca2f5d6e73e58c463e1b9dacffda3387a (diff)
drm/vmwgfx: respect 'nomodeset'
Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>. Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_drv.c7
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 c49812b80dd0..24fb348a44e1 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -25,6 +25,7 @@
25 * 25 *
26 **************************************************************************/ 26 **************************************************************************/
27#include <linux/module.h> 27#include <linux/module.h>
28#include <linux/console.h>
28 29
29#include <drm/drmP.h> 30#include <drm/drmP.h>
30#include "vmwgfx_drv.h" 31#include "vmwgfx_drv.h"
@@ -1538,6 +1539,12 @@ static int vmw_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1538static int __init vmwgfx_init(void) 1539static int __init vmwgfx_init(void)
1539{ 1540{
1540 int ret; 1541 int ret;
1542
1543#ifdef CONFIG_VGA_CONSOLE
1544 if (vgacon_text_force())
1545 return -EINVAL;
1546#endif
1547
1541 ret = drm_pci_init(&driver, &vmw_pci_driver); 1548 ret = drm_pci_init(&driver, &vmw_pci_driver);
1542 if (ret) 1549 if (ret)
1543 DRM_ERROR("Failed initializing DRM.\n"); 1550 DRM_ERROR("Failed initializing DRM.\n");