summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <idr@umwelt.(none)>2006-08-08 12:21:11 -0700
committerIan Romanick <idr@umwelt.(none)>2006-08-08 12:21:11 -0700
commit5108d1dd581a6e649f89812affba8481491e1bd7 (patch)
tree3cd1f8f177cc9b409533ad4ec8923ecc87a58e91 /src
parent6ac341e9fd4157a0cdb7fd3d043c136d5799146f (diff)
Instead of passing SavagePciChipsets in the p_chip parameter of
xf86ConfigPciEntity, pass RES_SHARED_VGA in the res parameter.
Diffstat (limited to 'src')
-rw-r--r--src/savage_driver.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index a3ddc99..a1a1674 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -816,14 +816,12 @@ static Bool SavageProbe(DriverPtr drv, int flags)
foundScreen = TRUE;
else
for (i=0; i<numUsed; i++) {
- EntityInfoPtr pEnt;
- ScrnInfoPtr pScrn;
- pScrn = NULL;
- pEnt = xf86GetEntityInfo(usedChips[i]);
- if((pScrn = xf86ConfigPciEntity(pScrn, 0, usedChips[i],
- SavagePciChipsets, 0, 0, 0, 0, 0)))
- {
+ EntityInfoPtr pEnt = xf86GetEntityInfo(usedChips[i]);;
+ ScrnInfoPtr pScrn = xf86ConfigPciEntity(NULL, 0, usedChips[i],
+ NULL, RES_SHARED_VGA,
+ NULL, NULL, NULL, NULL);
+ if (pScrn != NULL) {
pScrn->driverVersion = SAVAGE_VERSION;
pScrn->driverName = SAVAGE_DRIVER_NAME;
pScrn->name = "SAVAGE";