summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-10 01:15:50 -0300
committerDave Airlie <airlied@clockmaker.usersys.redhat.com>2008-03-10 14:37:55 +1000
commite26359a603d502d44081941fe566a47c5690bc91 (patch)
tree0492ca52fd499ed6daceb1d30ad22832f65fb74e /src
parent8c31b2e40951c62d362e9a95d8a7b29018626ef2 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/i740_driver.c4
-rw-r--r--src/i740_pcirename.h6
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 */