Staging: comedi: comedi_pci.h: remove comedi_pci_disable_no_regions
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 19 Nov 2008 22:02:21 +0000 (14:02 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:52:26 +0000 (13:52 -0800)
comedi_pci_disable_no_regions is not called by any comedi code
(in or out of the kernel tree), so remove it, so no one tries to
use it in the future.

Cc: David Schleef <ds@schleef.org>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/comedi_pci.h

index 09c9a44..c14a036 100644 (file)
 
 #include <linux/pci.h>
 
-/*
- * Called to disable PCI device if PCI device has been enabled, but
- * PCI regions have not been reserved.
- *
- * It only disables the PCI device if the kernel supports reference
- * counting of PCI enables, otherwise it might stop the device working
- * in another driver instance.
- */
-static inline void comedi_pci_disable_no_regions(struct pci_dev *pdev)
-{
-       pci_disable_device(pdev);
-}
-
 /*
  * Enable the PCI device and request the regions.
  */