patch-2.3.37 linux/drivers/video/aty128fb.c
Next file: linux/drivers/video/atyfb.c
Previous file: linux/drivers/usb/usb_scsi_dt.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Jan 6 09:54:06 2000
- Orig file:
v2.3.36/linux/drivers/video/aty128fb.c
- Orig date:
Thu Nov 18 20:25:37 1999
diff -u --recursive --new-file v2.3.36/linux/drivers/video/aty128fb.c linux/drivers/video/aty128fb.c
@@ -1598,14 +1598,13 @@
void
aty128pci_probe(void)
{
- struct pci_dev *pdev;
+ struct pci_dev *pdev = NULL;
struct fb_info_aty128 *info;
unsigned long fb_addr, reg_addr;
u16 tmp;
- for (pdev = pci_devices; pdev; pdev = pdev->next) {
- if (((pdev->class >> 16) == PCI_BASE_CLASS_DISPLAY) &&
- (pdev->vendor == PCI_VENDOR_ID_ATI)) {
+ while ((pdev = pci_find_device(PCI_VENDOR_ID_ATI, PCI_ANY_ID, pdev))) {
+ if ((pdev->class >> 16) == PCI_BASE_CLASS_DISPLAY) {
struct resource *rp;
/* FIXME add other known R128 device ID's */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)