patch from abbotti@mev.co.uk (Ian Abbott):
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 26 Jun 2005 15:35:36 +0000 (15:35 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 26 Jun 2005 15:35:36 +0000 (15:35 +0000)
commitfa7010d3af682b31a20489f21687b4d1d1709b8a
treebffa77a8f72ea7789dcaeb278ebacbcaa1682ac0
parent6ec240c179c3c0bab511deb7cf05a5ae17855a61
patch from abbotti@mev.co.uk (Ian Abbott):

At the end of February (or possibly the beginning of March, depending on your
timezone!) I submitted a patch to remove pci_find_device and use pci_get_device
and pci_dev_put (and occasionally pci_dev_get) instead.

I messed up on the amplc_pc262 and cb_pcidas drivers as I forgot to replace
pci_find_device with pci_get_device, but added the calls to pci_dev_put, so the
PCI reference counts would go negative when the device was detached.  The
attached patch corrects this problem and also fixes an unrelated gcc warning in
the cb_pcidas driver about a possibly ambiguous 'else' requiring braces (my
fault again!).
comedi/drivers/amplc_pc263.c
comedi/drivers/cb_pcidas.c