diff options
author | Dave Airlie <airlied@redhat.com> | 2008-05-12 16:36:42 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-05-12 16:36:42 +1000 |
commit | 3b6735528efc6d69ab7a7cd63dd09c87db7ef115 (patch) | |
tree | 2a73c509bd473a9389c72cd96a86d3c74c53ba40 | |
parent | 9dfb525f6c91acab5d1a65765a046bf9ee2aa082 (diff) |
pci: don't do this pci stuff when we don't have hw access
-rw-r--r-- | hw/xfree86/common/xf86Init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 68dc38772..851f4dc49 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -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 |