staging: comedi: amplc_dio200: no need to manipulate PCI ref count
authorIan Abbott <abbotti@mev.co.uk>
Wed, 24 Oct 2012 15:47:47 +0000 (16:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 22:25:10 +0000 (15:25 -0700)
commitf34e08f54f078cb4911962b43c2bd16c2f8ccce3
tree409f8931514734aa6616ad47ac6de335f24eb93a
parente45e423be45d7bbb404fd6db724960eea3702681
staging: comedi: amplc_dio200: no need to manipulate PCI ref count

Now that this driver no longer supports "manual" attachment of PCI
devices in its `attach` hook (`dio200_attach()`), it no longer has code
that searches for a suitable PCI device and increments its reference
count.  Since the driver no longer has any reason for incrementing and
decrementing the PCI device's reference count, the calls to
`pci_dev_get()` and `pci_dev_put()` can be removed.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_dio200.c