patch-2.3.37 linux/drivers/video/tdfxfb.c
Next file: linux/drivers/video/vesafb.c
Previous file: linux/drivers/video/rivafb.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Thu Jan 6 09:54:06 2000
- Orig file:
v2.3.36/linux/drivers/video/tdfxfb.c
- Orig date:
Sun Nov 7 16:37:34 1999
diff -u --recursive --new-file v2.3.36/linux/drivers/video/tdfxfb.c linux/drivers/video/tdfxfb.c
@@ -1969,9 +1969,8 @@
if(!pcibios_present()) return -ENXIO;
#endif
- for(pdev = pci_devices; pdev; pdev = pdev->next) {
+ while ((pdev = pci_find_device(PCI_VENDOR_ID_3DFX, PCI_ANY_ID, pdev))) {
if(((pdev->class >> 16) == PCI_BASE_CLASS_DISPLAY) &&
- (pdev->vendor == PCI_VENDOR_ID_3DFX) &&
((pdev->device == PCI_DEVICE_ID_3DFX_BANSHEE) ||
(pdev->device == PCI_DEVICE_ID_3DFX_VOODOO3))) {
char* name = pdev->device == PCI_DEVICE_ID_3DFX_BANSHEE
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)