staging: comedi: adl_pci7432: factor out the PCI device code
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 23 May 2012 21:38:33 +0000 (14:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:38:09 +0000 (20:38 -0700)
commitfc330f458941df0f1651964e8e1207e62fb6db51
treeb7425cd673d5e35c4a6cfe7c09c620506c077ce4
parentd3ff7b93ee8b619f777a73f34812e66de07ecd93
staging: comedi: adl_pci7432: factor out the PCI device code

Factor out the code that finds a matching PCI device from attach
function. This allows reducing the indent level of the remaining
code in the attach function.

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