diff --git a/drivers/staging/comedi/drivers/comedi_pci.h b/drivers/staging/comedi/drivers/comedi_pci.h index 09c9a4435367..c14a036a0536 100644 --- a/drivers/staging/comedi/drivers/comedi_pci.h +++ b/drivers/staging/comedi/drivers/comedi_pci.h @@ -28,19 +28,6 @@ #include -/* - * 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. */