From e26359a603d502d44081941fe566a47c5690bc91 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Mon, 10 Mar 2008 01:15:50 -0300 Subject: [PATCH] Minor fixes to compile with pciaccess. o Fix a typo o Protect call to xf86GetPciVideoInfo with ifndef XSERVER_LIBPCIACCESS o Some minor consistency in macro names in i740_pcirename.h --- src/i740_driver.c | 4 +++- src/i740_pcirename.h | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/i740_driver.c b/src/i740_driver.c index ee25967..f118637 100644 --- a/src/i740_driver.c +++ b/src/i740_driver.c @@ -378,11 +378,13 @@ I740Probe(DriverPtr drv, int flags) { return FALSE; } +#ifndef XSERVER_LIBPCIACCESS /* Since these Probing is just checking the PCI data the server already collected. */ if (!xf86GetPciVideoInfo()) return FALSE; +#endif /* Look for Intel based chips */ numUsed = xf86MatchPciInstances(I740_NAME, PCI_VENDOR_INTEL, @@ -600,7 +602,7 @@ I740PreInit(ScrnInfoPtr pScrn, int flags) { pI740->pEnt->device->chipID); } else { from = X_PROBED; - pScrn->chipset = (char *)xf86TokenToString(I740Chipsets, PCI_DEV_DEVIE_ID(pI740->PciInfo)); + pScrn->chipset = (char *)xf86TokenToString(I740Chipsets, PCI_DEV_DEVICE_ID(pI740->PciInfo)); } if (pI740->pEnt->device->chipRev >= 0) { xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "ChipRev override: %d\n", diff --git a/src/i740_pcirename.h b/src/i740_pcirename.h index cbd3dcf..e783713 100644 --- a/src/i740_pcirename.h +++ b/src/i740_pcirename.h @@ -26,8 +26,8 @@ * library. The main purpose being to facilitate source code compatibility. */ -#ifndef ASTPCIRENAME_H -#define ASTPCIRENAME_H +#ifndef I740PCIRENAME_H +#define I740PCIRENAME_H enum region_type { REGION_MEM, @@ -119,4 +119,4 @@ typedef struct pci_device *pciVideoPtr; #endif /* XSERVER_LIBPCIACCESS */ -#endif /* CIRPCIRENAME_H */ +#endif /* i740PCIRENAME_H */