aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_vga.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_vga.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_vga.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_vga.c b/drivers/gpu/drm/nouveau/nouveau_vga.c
index 471347edc27e..fb84da3cb50d 100644
--- a/drivers/gpu/drm/nouveau/nouveau_vga.c
+++ b/drivers/gpu/drm/nouveau/nouveau_vga.c
@@ -84,6 +84,11 @@ nouveau_vga_init(struct nouveau_drm *drm)
84{ 84{
85 struct drm_device *dev = drm->dev; 85 struct drm_device *dev = drm->dev;
86 bool runtime = false; 86 bool runtime = false;
87
88 /* only relevant for PCI devices */
89 if (!dev->pdev)
90 return;
91
87 vga_client_register(dev->pdev, dev, NULL, nouveau_vga_set_decode); 92 vga_client_register(dev->pdev, dev, NULL, nouveau_vga_set_decode);
88 93
89 if (nouveau_runtime_pm == 1) 94 if (nouveau_runtime_pm == 1)