aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorLinas Vepstas <linas@austin.ibm.com>2007-11-07 16:43:59 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-01 18:04:22 -0500
commit94688cf2454986309fbcd495233ba2423786a14a (patch)
treeac170991ef1db1127d59a0d7231a8cbb53b5474c /drivers/pci/pci.h
parent1b7c9fcaa147662628078c83ecaf1ef2c5c9c9d0 (diff)
PCI: export pci_restore_msi_state()
PCI error recovery usually involves the PCI adapter being reset. If the device is using MSI, the reset will cause the MSI state to be lost; the device driver needs to restore the MSI state. The pci_restore_msi_state() routine is currently protected by CONFIG_PM; remove this, and also export the symbol, so that it can be used in a modle. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index fc87e14b50de..4c4613387786 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -45,12 +45,6 @@ static inline void pci_no_msi(void) { }
45static inline void pci_msi_init_pci_dev(struct pci_dev *dev) { } 45static inline void pci_msi_init_pci_dev(struct pci_dev *dev) { }
46#endif 46#endif
47 47
48#if defined(CONFIG_PCI_MSI) && defined(CONFIG_PM)
49void pci_restore_msi_state(struct pci_dev *dev);
50#else
51static inline void pci_restore_msi_state(struct pci_dev *dev) {}
52#endif
53
54#ifdef CONFIG_PCIEAER 48#ifdef CONFIG_PCIEAER
55void pci_no_aer(void); 49void pci_no_aer(void);
56#else 50#else