summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-11-19 14:02:21 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 13:52:26 -0800
commitd2f63f9c67ef1a627e7b0ccd5e236272db118ceb (patch)
tree334609f18b8cf6b30033cb0bab6b7a9e2a6ce1a7 /drivers
parent7b1f281350ca1ba1f740ced203136d27390b22c1 (diff)
downloadop-kernel-dev-d2f63f9c67ef1a627e7b0ccd5e236272db118ceb.zip
op-kernel-dev-d2f63f9c67ef1a627e7b0ccd5e236272db118ceb.tar.gz
Staging: comedi: comedi_pci.h: remove comedi_pci_disable_no_regions
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/comedi_pci.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/staging/comedi/drivers/comedi_pci.h b/drivers/staging/comedi/drivers/comedi_pci.h
index 09c9a44..c14a036 100644
--- a/drivers/staging/comedi/drivers/comedi_pci.h
+++ b/drivers/staging/comedi/drivers/comedi_pci.h
@@ -29,19 +29,6 @@
#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.
*/
static inline int comedi_pci_enable(struct pci_dev *pdev, const char *res_name)
OpenPOWER on IntegriCloud