diff options
Diffstat (limited to 'drivers/video/aty128fb.c')
-rw-r--r-- | drivers/video/aty128fb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/video/aty128fb.c b/drivers/video/aty128fb.c index baf41e9ec..5151981c3 100644 --- a/drivers/video/aty128fb.c +++ b/drivers/video/aty128fb.c @@ -1598,14 +1598,13 @@ aty128fb_init(void) 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 */ |