Re: [PATCH 65/90] staging: comedi: dt3000: cleanup "find pci device" code

2012-07-19 Thread Ian Abbott
On 2012-07-19 02:57, H Hartley Sweeten wrote: The "find pci device" code for this driver was split between two functions which could cause the driver to walk the pci bus multiple times while looking for a match. Actually the original version only walks through the PCI devices once (due to the

Re: [PATCH 65/90] staging: comedi: dt3000: cleanup find pci device code

2012-07-19 Thread Ian Abbott
On 2012-07-19 02:57, H Hartley Sweeten wrote: The find pci device code for this driver was split between two functions which could cause the driver to walk the pci bus multiple times while looking for a match. Actually the original version only walks through the PCI devices once (due to the

[PATCH 65/90] staging: comedi: dt3000: cleanup "find pci device" code

2012-07-18 Thread H Hartley Sweeten
The "find pci device" code for this driver was split between two functions which could cause the driver to walk the pci bus multiple times while looking for a match. Consolidate the functions into the format that is more standard for the comedi pci drivers. Signed-off-by: H Hartley Sweeten Cc:

[PATCH 65/90] staging: comedi: dt3000: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
The find pci device code for this driver was split between two functions which could cause the driver to walk the pci bus multiple times while looking for a match. Consolidate the functions into the format that is more standard for the comedi pci drivers. Signed-off-by: H Hartley Sweeten