[PATCH] Small fix and improvement for amplc_pc236 and amplc_pc263 drivers

Hi,

This patch fixes a harmless logical error in the _attach routines of the 
amplc_pc236 and amplc_pc263 drivers that I noticed while looking at the 
pci_for_each_dev stuff.  Also, now that the drivers ar using 
pci_find_device instead of pci_for_each_dev, the patch offloads some of 
the searching for a matching PCI device to the pci_find_device function.

The bug is just after the loop that finds the PCI device ID table entry 
that matches the comedi board name.  The test for reaching the end of 
the PCI device ID table without finding a match was incorrect.  I say 
the bug is harmless because there would have to be another bug somewhere 
else to trigger this bug.

Ian.

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2005-01-24Z12:11:59