diff options
Diffstat (limited to 'arch/x86/pci/common.c')
-rw-r--r-- | arch/x86/pci/common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 0cb52ae0a8f0..190e718694b1 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c | |||
@@ -735,6 +735,15 @@ void pcibios_disable_device (struct pci_dev *dev) | |||
735 | pcibios_disable_irq(dev); | 735 | pcibios_disable_irq(dev); |
736 | } | 736 | } |
737 | 737 | ||
738 | #ifdef CONFIG_ACPI_HOTPLUG_IOAPIC | ||
739 | void pcibios_release_device(struct pci_dev *dev) | ||
740 | { | ||
741 | if (atomic_dec_return(&dev->enable_cnt) >= 0) | ||
742 | pcibios_disable_device(dev); | ||
743 | |||
744 | } | ||
745 | #endif | ||
746 | |||
738 | int pci_ext_cfg_avail(void) | 747 | int pci_ext_cfg_avail(void) |
739 | { | 748 | { |
740 | if (raw_pci_ext_ops) | 749 | if (raw_pci_ext_ops) |