Re: pci_find_class obsolete

From: Matthias-Christian Ott
Date: Thu Mar 03 2005 - 09:21:54 EST


Jan Engelhardt wrote:

Hello list,


after switching to 2.6.11-rc5-bk2 (from 2.6.9-rc2), I found that the nvidia module (1.0-4996, old, I know) does not compile anymore, because it
requires pci_find_class():

nv.c:
static int
nvos_probe_devices(void)
{
...
struct pci_dev *dev;
...
dev = pci_find_class(PCI_CLASS_DISPLAY_VGA << 8, dev);
...
}

What function would I need to use, now that pci_find_class is gone?


Jan Engelhardt


Hi!
you have to use pci_get_class (). But have a look at the patches for 6111 on my webiste:

http://unixforge.org/~matthias-christian-ott/index.php?entry=entry050303-082233

Matthias-Christian Ott
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/