Skip to content

Commit

Permalink
drm/vmwgfx: respect 'nomodeset'
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Thomas Hellstrom <[email protected]>.
Cc: [email protected]
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
robclark authored and airlied committed Jan 29, 2016
1 parent 2ad14a6 commit 96c5d07
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*
**************************************************************************/
#include <linux/module.h>
#include <linux/console.h>

#include <drm/drmP.h>
#include "vmwgfx_drv.h"
Expand Down Expand Up @@ -1538,6 +1539,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");
Expand Down

0 comments on commit 96c5d07

Please sign in to comment.