Jesus, pciInit() was called 32 times in my machine without need!
xf86scanpci() will always call pciInit() before any other function, so there's no need to guarantee it after.
This commit is contained in:
parent
81272f7ec9
commit
a9050d5424
|
@ -154,11 +154,6 @@ int pciMaxBusNum = MAX_PCI_BUSES;
|
|||
static void
|
||||
pciInit(void)
|
||||
{
|
||||
static int pciInitialized = 0;
|
||||
|
||||
if (!pciInitialized) {
|
||||
pciInitialized = 1;
|
||||
|
||||
/* XXX */
|
||||
#if defined(DEBUGPCI)
|
||||
if (DEBUGPCI >= xf86Verbose) {
|
||||
|
@ -167,7 +162,6 @@ pciInit(void)
|
|||
#endif
|
||||
|
||||
ARCH_PCI_INIT();
|
||||
}
|
||||
}
|
||||
|
||||
_X_EXPORT ADDRESS
|
||||
|
@ -175,8 +169,6 @@ pciBusAddrToHostAddr(PCITAG tag, PciAddrType type, ADDRESS addr)
|
|||
{
|
||||
int bus = PCI_BUS_FROM_TAG(tag);
|
||||
|
||||
pciInit();
|
||||
|
||||
if ((bus >= 0) && (bus < pciNumBuses) && pciBusInfo[bus] &&
|
||||
pciBusInfo[bus]->funcs->pciAddrBusToHost)
|
||||
return (*pciBusInfo[bus]->funcs->pciAddrBusToHost)(tag, type, addr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user