staging: comedi: adv_pci_dio: remove CheckAndAllocCard()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 19 Jul 2012 01:34:15 +0000 (18:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2012 23:19:42 +0000 (16:19 -0700)
commite10355b946a5b685ca16be7d7ba31e9571233bee
treecbcb24f11c8eaafa33f1f9b60d2d80afaace239d
parent54b303c45d43d5b4ca69de843fb2d1a7160578f9
staging: comedi: adv_pci_dio: remove CheckAndAllocCard()

This driver creates a linked list of all the pci devices in
the system while it's looking for a match. It's only use is
to determine if a device is "free" to use. The pci_is_enabled()
helper can give us the same information. Use that instead and
remove the linked list.

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