pci: don't do this pci stuff when we don't have hw access

This commit is contained in:
Dave Airlie 2008-05-12 16:36:42 +10:00
parent 9dfb525f6c
commit 3b6735528e

View File

@ -632,10 +632,10 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
/*
* Locate bus slot that had register IO enabled at server startup
*/
xf86AccessInit();
xf86FindPrimaryDevice();
if (xorgHWAccess) {
xf86AccessInit();
xf86FindPrimaryDevice();
}
/*
* Now call each of the Probe functions. Each successful probe will
* result in an extra entry added to the xf86Screens[] list for each