diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-09-10 07:20:34 +0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-09-17 18:16:29 +0400 |
commit | fc1620883af8cbc10bfb1a4ef2eb4e8113243012 (patch) | |
tree | 93ed88760f9a6735aaf172a84d873e2f515dd85a /drivers/gpu/drm/nouveau/nouveau_fbcon.c | |
parent | 5495e39fb3695182b9f2a72fe4169056cada37a1 (diff) | |
download | linux-fc1620883af8cbc10bfb1a4ef2eb4e8113243012.tar.xz |
drm/nouveau/kms: enable for non-vga pci classes
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_fbcon.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_fbcon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index 8f6d63d7edd3..a86ecf65c164 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c @@ -454,7 +454,8 @@ nouveau_fbcon_init(struct drm_device *dev) int preferred_bpp; int ret; - if (!dev->mode_config.num_crtc) + if (!dev->mode_config.num_crtc || + (dev->pdev->class >> 8) != PCI_CLASS_DISPLAY_VGA) return 0; fbcon = kzalloc(sizeof(struct nouveau_fbdev), GFP_KERNEL); |