aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drm.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c
index 05915c10d07e..6dd396f56884 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
@@ -317,7 +317,16 @@ static int nouveau_drm_probe(struct pci_dev *pdev,
317 if (vga_switcheroo_client_probe_defer(pdev)) 317 if (vga_switcheroo_client_probe_defer(pdev))
318 return -EPROBE_DEFER; 318 return -EPROBE_DEFER;
319 319
320 /* remove conflicting drivers (vesafb, efifb etc) */ 320 /* We need to check that the chipset is supported before booting
321 * fbdev off the hardware, as there's no way to put it back.
322 */
323 ret = nvkm_device_pci_new(pdev, NULL, "error", true, false, 0, &device);
324 if (ret)
325 return ret;
326
327 nvkm_device_del(&device);
328
329 /* Remove conflicting drivers (vesafb, efifb etc). */
321 aper = alloc_apertures(3); 330 aper = alloc_apertures(3);
322 if (!aper) 331 if (!aper)
323 return -ENOMEM; 332 return -ENOMEM;