xfree86: Remove xf86ConfigActivePciEntity
The giant OBSOLETE DO NOT USE comment has been there since 2000, probably it's safe to nuke by now. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
51531a6717
commit
3bb9f9862b
|
@ -129,14 +129,6 @@ extern _X_EXPORT ScrnInfoPtr xf86ConfigPciEntity(ScrnInfoPtr pScrn,
|
|||
EntityProc enter,
|
||||
EntityProc leave,
|
||||
void *private);
|
||||
/* Obsolete! don't use */
|
||||
extern _X_EXPORT Bool xf86ConfigActivePciEntity(ScrnInfoPtr pScrn,
|
||||
int entityIndex,
|
||||
PciChipsets * p_chip,
|
||||
void *dummy, EntityProc init,
|
||||
EntityProc enter,
|
||||
EntityProc leave,
|
||||
void *private);
|
||||
#else
|
||||
#define xf86VGAarbiterInit() do {} while (0)
|
||||
#define xf86VGAarbiterFini() do {} while (0)
|
||||
|
|
|
@ -1061,33 +1061,6 @@ xf86ConfigPciEntity(ScrnInfoPtr pScrn, int scrnFlag, int entityIndex,
|
|||
return pScrn;
|
||||
}
|
||||
|
||||
/*
|
||||
* OBSOLETE ! xf86ConfigActivePciEntity() is an obsolete function.
|
||||
* It is likely to be removed. Don't use!
|
||||
*/
|
||||
Bool
|
||||
xf86ConfigActivePciEntity(ScrnInfoPtr pScrn, int entityIndex,
|
||||
PciChipsets * p_chip, void *dummy, EntityProc init,
|
||||
EntityProc enter, EntityProc leave, void *private)
|
||||
{
|
||||
EntityInfoPtr pEnt = xf86GetEntityInfo(entityIndex);
|
||||
|
||||
if (!pEnt)
|
||||
return FALSE;
|
||||
|
||||
if (!pEnt->active || !(pEnt->location.type == BUS_PCI)) {
|
||||
free(pEnt);
|
||||
return FALSE;
|
||||
}
|
||||
xf86AddEntityToScreen(pScrn, entityIndex);
|
||||
|
||||
free(pEnt);
|
||||
if (!xf86SetEntityFuncs(entityIndex, init, enter, leave, private))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
xf86VideoPtrToDriverList(struct pci_device *dev,
|
||||
char *returnList[], int returnListMax)
|
||||
|
|
Loading…
Reference in New Issue
Block a user