diff options
-rw-r--r-- | src/intel_driver.c | 2 | ||||
-rw-r--r-- | src/sna/sna_driver.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c index 1ef06fbb..c5be6793 100644 --- a/src/intel_driver.c +++ b/src/intel_driver.c @@ -249,7 +249,7 @@ static Bool intel_open_drm_master(ScrnInfoPtr scrn) snprintf(busid, sizeof(busid), "pci:%04x:%02x:%02x.%d", dev->domain, dev->bus, dev->dev, dev->func); - intel->drmSubFD = drmOpen("i915", busid); + intel->drmSubFD = drmOpen(NULL, busid); if (intel->drmSubFD == -1) { xf86DrvMsg(scrn->scrnIndex, X_ERROR, "[drm] Failed to open DRM device for %s: %s\n", diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index 6810c7a1..a0beb4cf 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -259,7 +259,7 @@ static int sna_open_drm_master(ScrnInfoPtr scrn) snprintf(busid, sizeof(busid), "pci:%04x:%02x:%02x.%d", pci->domain, pci->bus, pci->dev, pci->func); - fd = drmOpen("i915", busid); + fd = drmOpen(NULL, busid); if (fd == -1) { xf86DrvMsg(scrn->scrnIndex, X_ERROR, "[drm] Failed to open DRM device for %s: %s\n", |