xfree86: Unbreak autoconfig following 0abf065e38
The move of the PCI device id probing into a separate file neglected to return the number of found devices, and so the PCI devices were being overwritten by the default entries for vesa and fbdev. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tiago Vignatti <tiago.vignatti@nokia.com> Cc: Alex Deucher <alexdeucher@gmail.com> Reviewed-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
1304b8b27c
commit
d90f2cd98a
|
@ -257,7 +257,7 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
|
|||
}
|
||||
#endif
|
||||
|
||||
xf86PciMatchDriver(matches, nmatches);
|
||||
i = xf86PciMatchDriver(matches, nmatches);
|
||||
|
||||
/* Fallback to platform default hardware */
|
||||
if (i < (nmatches - 1)) {
|
||||
|
|
|
@ -1294,7 +1294,11 @@ matchDriverFromFiles (char** matches, uint16_t match_vendor, uint16_t match_chip
|
|||
}
|
||||
#endif /* __linux__ */
|
||||
|
||||
void
|
||||
/**
|
||||
* @return The numbers of found devices that match with the current system
|
||||
* drivers.
|
||||
*/
|
||||
int
|
||||
xf86PciMatchDriver(char* matches[], int nmatches) {
|
||||
int i;
|
||||
struct pci_device * info = NULL;
|
||||
|
@ -1326,4 +1330,6 @@ xf86PciMatchDriver(char* matches[], int nmatches) {
|
|||
if ((info != NULL) && (i < nmatches)) {
|
||||
i += videoPtrToDriverList(info, &(matches[i]), nmatches - i);
|
||||
}
|
||||
|
||||
return i;
|
||||
}
|
||||
|
|
|
@ -37,6 +37,6 @@ void xf86PciProbe(void);
|
|||
Bool xf86PciAddMatchingDev(DriverPtr drvp);
|
||||
Bool xf86PciProbeDev(DriverPtr drvp);
|
||||
void xf86PciIsolateDevice(char *argument);
|
||||
void xf86PciMatchDriver(char* matches[], int nmatches);
|
||||
int xf86PciMatchDriver(char* matches[], int nmatches);
|
||||
|
||||
#endif /* _XF86_PCI_BUS_H */
|
||||
|
|
Loading…
Reference in New Issue
Block a user