On Fri, Aug 20, 2004 at 09:00:06AM +0200, Christophe Lucas wrote: > Timur Tabi (timur.tabi@xxxxxxxxxxx) wrote: > > I have a driver that uses the macro pci_for_each_dev, which no longer > > exists in the 2.6 kernel. What do I use in 2.6? > > _Please _ read docs ;-) linux-2.6.x/Documentation/pci.txt: > > [...] > pci_for_each_dev() Superseded by pci_find_device() No! Use pci_get_device(), pci_find_device() is about to be deleted. > pci_for_each_dev_reverse() Superseded by pci_find_device_reverse() Again, no! You should never need this function, there is only 1 user of it, and it's about to be fixed... thanks, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/