diff options
author | Linas Vepstas <linas@austin.ibm.com> | 2007-11-07 16:43:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 18:04:22 -0500 |
commit | 94688cf2454986309fbcd495233ba2423786a14a (patch) | |
tree | ac170991ef1db1127d59a0d7231a8cbb53b5474c /drivers/pci/msi.c | |
parent | 1b7c9fcaa147662628078c83ecaf1ef2c5c9c9d0 (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/msi.c')
-rw-r--r-- | drivers/pci/msi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 07c9f09c856d..30de51fcd68c 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -230,7 +230,6 @@ static void pci_intx_for_msi(struct pci_dev *dev, int enable) | |||
230 | pci_intx(dev, enable); | 230 | pci_intx(dev, enable); |
231 | } | 231 | } |
232 | 232 | ||
233 | #ifdef CONFIG_PM | ||
234 | static void __pci_restore_msi_state(struct pci_dev *dev) | 233 | static void __pci_restore_msi_state(struct pci_dev *dev) |
235 | { | 234 | { |
236 | int pos; | 235 | int pos; |
@@ -288,7 +287,7 @@ void pci_restore_msi_state(struct pci_dev *dev) | |||
288 | __pci_restore_msi_state(dev); | 287 | __pci_restore_msi_state(dev); |
289 | __pci_restore_msix_state(dev); | 288 | __pci_restore_msix_state(dev); |
290 | } | 289 | } |
291 | #endif /* CONFIG_PM */ | 290 | EXPORT_SYMBOL_GPL(pci_restore_msi_state); |
292 | 291 | ||
293 | /** | 292 | /** |
294 | * msi_capability_init - configure device's MSI capability structure | 293 | * msi_capability_init - configure device's MSI capability structure |