Call xf86OpenConsole() before probing for drivers.

On OpenBSD, we need the console fd to query wsdisplay type,
This was only causing problems with -keepPriv, since the privilege
separation code already calls xf86OpenConsole() earlier.
The function is idempotent, so there's no harm calling it
several times.
ok kettenis@
This commit is contained in:
matthieu 2019-01-03 19:31:25 +00:00
parent 6038d36c4f
commit 5a9c7d77ed

View File

@ -51,5 +51,6 @@
void
osPciInit(void)
{
xf86OpenConsole();
xf86InitVidMem();
}