aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-07-10 02:36:05 -0400
committerJeff Garzik <jeff@garzik.org>2007-07-24 16:55:01 -0400
commitf0a664bbd1839fbe9f57564983f39bfc6c6f931d (patch)
tree4b1e20d96fd44f3d3ec5ad2d292a4479638eae09 /drivers/pci
parentf695baf2df9e0413d3521661070103711545207a (diff)
PCI: export __pci_reenable_device()
Some odd ACPI implementations choke if certain controller is disabled when ACPI suspend is invoked but we still need to make sure the PCI device is enabled during resume. Simply using pci_enable_device() unbalances device enable count. Export __pci_reenable_device(). Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci.c1
-rw-r--r--drivers/pci/pci.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 03fd59e80fef..c95485398687 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -1604,6 +1604,7 @@ early_param("pci", pci_setup);
1604device_initcall(pci_init); 1604device_initcall(pci_init);
1605 1605
1606EXPORT_SYMBOL_GPL(pci_restore_bars); 1606EXPORT_SYMBOL_GPL(pci_restore_bars);
1607EXPORT_SYMBOL(__pci_reenable_device);
1607EXPORT_SYMBOL(pci_enable_device_bars); 1608EXPORT_SYMBOL(pci_enable_device_bars);
1608EXPORT_SYMBOL(pci_enable_device); 1609EXPORT_SYMBOL(pci_enable_device);
1609EXPORT_SYMBOL(pcim_enable_device); 1610EXPORT_SYMBOL(pcim_enable_device);
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 3fec13d3add7..7b696cd66dc5 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -1,6 +1,5 @@
1/* Functions internal to the PCI core code */ 1/* Functions internal to the PCI core code */
2 2
3extern int __must_check __pci_reenable_device(struct pci_dev *);
4extern int pci_uevent(struct device *dev, char **envp, int num_envp, 3extern int pci_uevent(struct device *dev, char **envp, int num_envp,
5 char *buffer, int buffer_size); 4 char *buffer, int buffer_size);
6extern int pci_create_sysfs_dev_files(struct pci_dev *pdev); 5extern int pci_create_sysfs_dev_files(struct pci_dev *pdev);