staging: comedi: dyna_pci10xx: factor out the "find pci device" code
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 19 Jul 2012 01:59:00 +0000 (18:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2012 23:51:36 +0000 (16:51 -0700)
commit1f20b973f68346af2712e5d014932d984b6f5387
tree0b7eff6622d95e7ebdfdb625fcde28d1af23666f
parent9e9e13f53f739c86070a4ad09e49a4e7543dd31d
staging: comedi: dyna_pci10xx: 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/dyna_pci10xx.c