]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: adl_pci9111: remove pci_dev_put()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 11 Sep 2012 20:54:21 +0000 (13:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 21:05:02 +0000 (14:05 -0700)
This driver no longer walks the pci bus to find the pci_dev.
The pci_dev_put() is no longer needed.

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/adl_pci9111.c

index d2d072e5ca41f6b77be5869cd3918950a7892871..91efaa4caadb82ae97c6ec057be3de2a52859f45 100644 (file)
@@ -970,7 +970,6 @@ static void pci9111_detach(struct comedi_device *dev)
        if (pcidev) {
                if (dev->iobase)
                        comedi_pci_disable(pcidev);
-               pci_dev_put(pcidev);
        }
 }