diff options
author | Markus Trippelsdorf <markus@trippelsdorf.de> | 2011-01-14 18:07:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-14 18:23:25 -0500 |
commit | ab0724ffee24409a7f81afb539b2ac29090bff3e (patch) | |
tree | 8d0611d921494af2477d517f4f8a331150bf328d /include/linux/pci.h | |
parent | 9a1fe2f27f71dd275caf2be5be2fa59bd2a3f8d4 (diff) |
PCI / ACPI: Fix build issue in pci_root.c for !CONFIG_PCIEPORTBUS
The compilation of drivers/acpi/pci_root.c fails if
CONFIG_PCIEPORTBUS is unset. Fix the problem.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 9e67dcd054c4..559d02897075 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -993,8 +993,13 @@ extern void pci_restore_msi_state(struct pci_dev *dev); | |||
993 | extern int pci_msi_enabled(void); | 993 | extern int pci_msi_enabled(void); |
994 | #endif | 994 | #endif |
995 | 995 | ||
996 | #ifdef CONFIG_PCIEPORTBUS | ||
996 | extern bool pcie_ports_disabled; | 997 | extern bool pcie_ports_disabled; |
997 | extern bool pcie_ports_auto; | 998 | extern bool pcie_ports_auto; |
999 | #else | ||
1000 | #define pcie_ports_disabled true | ||
1001 | #define pcie_ports_auto false | ||
1002 | #endif | ||
998 | 1003 | ||
999 | #ifndef CONFIG_PCIEASPM | 1004 | #ifndef CONFIG_PCIEASPM |
1000 | static inline int pcie_aspm_enabled(void) | 1005 | static inline int pcie_aspm_enabled(void) |