staging: comedi: rtd520: factor out the "find pci device" code
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 11 Jul 2012 00:24:52 +0000 (17:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 00:16:28 +0000 (17:16 -0700)
commit7a819d1e5a40189ab94282dc0e42b76c7f52df8d
treea177ca8b56f321ff44496718c50a84f347924d70
parent9e81c8761cb11157e935fa27ed7bda18c55b6b82
staging: comedi: rtd520: 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/rtd520.c