diff options
-rw-r--r-- | drivers/pci/msi.c | 3 | ||||
-rw-r--r-- | drivers/pci/pci.h | 6 | ||||
-rw-r--r-- | include/linux/pci.h | 2 |
3 files changed, 3 insertions, 8 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 |
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) { } | |||
45 | static inline void pci_msi_init_pci_dev(struct pci_dev *dev) { } | 45 | static 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) | ||
49 | void pci_restore_msi_state(struct pci_dev *dev); | ||
50 | #else | ||
51 | static inline void pci_restore_msi_state(struct pci_dev *dev) {} | ||
52 | #endif | ||
53 | |||
54 | #ifdef CONFIG_PCIEAER | 48 | #ifdef CONFIG_PCIEAER |
55 | void pci_no_aer(void); | 49 | void pci_no_aer(void); |
56 | #else | 50 | #else |
diff --git a/include/linux/pci.h b/include/linux/pci.h index c53d6cf723d1..87aab07e239a 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -668,6 +668,7 @@ static inline int pci_enable_msix(struct pci_dev* dev, | |||
668 | struct msix_entry *entries, int nvec) {return -1;} | 668 | struct msix_entry *entries, int nvec) {return -1;} |
669 | static inline void pci_disable_msix(struct pci_dev *dev) {} | 669 | static inline void pci_disable_msix(struct pci_dev *dev) {} |
670 | static inline void msi_remove_pci_irq_vectors(struct pci_dev *dev) {} | 670 | static inline void msi_remove_pci_irq_vectors(struct pci_dev *dev) {} |
671 | static inline void pci_restore_msi_state(struct pci_dev *dev) {} | ||
671 | #else | 672 | #else |
672 | extern int pci_enable_msi(struct pci_dev *dev); | 673 | extern int pci_enable_msi(struct pci_dev *dev); |
673 | extern void pci_disable_msi(struct pci_dev *dev); | 674 | extern void pci_disable_msi(struct pci_dev *dev); |
@@ -675,6 +676,7 @@ extern int pci_enable_msix(struct pci_dev* dev, | |||
675 | struct msix_entry *entries, int nvec); | 676 | struct msix_entry *entries, int nvec); |
676 | extern void pci_disable_msix(struct pci_dev *dev); | 677 | extern void pci_disable_msix(struct pci_dev *dev); |
677 | extern void msi_remove_pci_irq_vectors(struct pci_dev *dev); | 678 | extern void msi_remove_pci_irq_vectors(struct pci_dev *dev); |
679 | extern void pci_restore_msi_state(struct pci_dev *dev); | ||
678 | #endif | 680 | #endif |
679 | 681 | ||
680 | #ifdef CONFIG_HT_IRQ | 682 | #ifdef CONFIG_HT_IRQ |