staging: comedi: me_daq: remove pci_dev_put() in detach
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 25 Oct 2012 22:09:18 +0000 (15:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Oct 2012 16:20:02 +0000 (09:20 -0700)
This driver uses the comedi auto config mechanism and does not
walk the pci bus to find the pci_dev. It should not be calling
pci_dev_put() to decrement the ref count.

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

index 952c68259c40f385649d94a5f5505097030ddd34..1e4a980a63b7c5e1f1672499e731e84dbb3a73b1 100644 (file)
@@ -760,7 +760,6 @@ static void me_detach(struct comedi_device *dev)
        if (pcidev) {
                if (dev->iobase)
                        comedi_pci_disable(pcidev);
-               pci_dev_put(pcidev);
        }
 }