Commit d2f63f9c authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7b1f2813
......@@ -28,19 +28,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.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment