i2c-viapro and via686a don't mix with linux-2.6.0-test1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 15, 2003 at 08:42:28PM +0200, Christoph Heine wrote:
> +	while ((dev = pci_find_device(PCI_VENDOR_ID_VIA, PCI_ANY_ID, dev)) != NULL) {
> +	id = pci_match_device(vt596_ids, dev);
> +       		if(id)
> +        		if(vt596_probe(dev, id) >= 0)
> +            			return 0;
> +	}
> +	return -ENODEV;

Heh, yes this is the "proper" way to do this on 2.5/2.6 to get the code
to build and run, but it's not the "real" fix.

It still has the same problems that pci_for_each_dev() has (minus a few
race conditions...)

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux