[PATCH 35/90] staging: comedi: amplc_pci224: cleanup "find pci device" code

2012-07-18 Thread H Hartley Sweeten
For aesthetic reasons, rename the function and pass the comedi_devconfig struct instead of pre-parsing out the bus/slot information. Use for_each_pci_dev() instead of open-coding the loop using pci_get_device(). Consolidate the dev_err messages when a pci device is not found. Signed-off-by: H

[PATCH 35/90] staging: comedi: amplc_pci224: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
For aesthetic reasons, rename the function and pass the comedi_devconfig struct instead of pre-parsing out the bus/slot information. Use for_each_pci_dev() instead of open-coding the loop using pci_get_device(). Consolidate the dev_err messages when a pci device is not found. Signed-off-by: H