intel: Fix failure code for reporting !drmCheckModesetingSupported

The new function returns the fd, not a Bool, so the error code must now
be -1.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2013-06-30 15:02:19 +01:00
parent f8738d7b4c
commit 5005bd2d52

View File

@@ -98,7 +98,7 @@ static int __intel_open_device(const struct pci_device *pci, char **path)
if (xf86LoadKernelModule("i915"))
ret = drmCheckModesettingSupported(id);
if (ret)
return FALSE;
return -1;
/* Be nice to the user and load fbcon too */
(void)xf86LoadKernelModule("fbcon");
}