staging: comedi: adv_pci_dio: factor out the "find pci device" code
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 19 Jul 2012 01:33:27 +0000 (18:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2012 23:19:42 +0000 (16:19 -0700)
commit54b303c45d43d5b4ca69de843fb2d1a7160578f9
treee3a1be461c2b80af4a0127ce0e0d7aa18122430b
parentad37c85c44bd9b40028c2338c7e1a7e9be3dbd70
staging: comedi: adv_pci_dio: factor out the "find pci device" code

Factor the "find pci device" code out of the attach function.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adv_pci_dio.c