diff options
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 4948db0f8100..a4f2d580625e 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -52,17 +52,15 @@ void pci_no_msi(void); | |||
52 | static inline void disable_msi_mode(struct pci_dev *dev, int pos, int type) { } | 52 | static inline void disable_msi_mode(struct pci_dev *dev, int pos, int type) { } |
53 | static inline void pci_no_msi(void) { } | 53 | static inline void pci_no_msi(void) { } |
54 | #endif | 54 | #endif |
55 | |||
55 | #if defined(CONFIG_PCI_MSI) && defined(CONFIG_PM) | 56 | #if defined(CONFIG_PCI_MSI) && defined(CONFIG_PM) |
56 | int pci_save_msi_state(struct pci_dev *dev); | 57 | int pci_save_msi_state(struct pci_dev *dev); |
57 | int pci_save_msix_state(struct pci_dev *dev); | ||
58 | void pci_restore_msi_state(struct pci_dev *dev); | 58 | void pci_restore_msi_state(struct pci_dev *dev); |
59 | void pci_restore_msix_state(struct pci_dev *dev); | ||
60 | #else | 59 | #else |
61 | static inline int pci_save_msi_state(struct pci_dev *dev) { return 0; } | 60 | static inline int pci_save_msi_state(struct pci_dev *dev) { return 0; } |
62 | static inline int pci_save_msix_state(struct pci_dev *dev) { return 0; } | ||
63 | static inline void pci_restore_msi_state(struct pci_dev *dev) {} | 61 | static inline void pci_restore_msi_state(struct pci_dev *dev) {} |
64 | static inline void pci_restore_msix_state(struct pci_dev *dev) {} | ||
65 | #endif | 62 | #endif |
63 | |||
66 | static inline int pci_no_d1d2(struct pci_dev *dev) | 64 | static inline int pci_no_d1d2(struct pci_dev *dev) |
67 | { | 65 | { |
68 | unsigned int parent_dstates = 0; | 66 | unsigned int parent_dstates = 0; |