summaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-12-21 10:04:23 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-12-21 10:04:23 +0100
commit3eb85368460d942005ba305829e279d0fe4767e0 (patch)
treee4498b245f5dff9fa6836413ccb10f6df971df30 /include/acpi
parent4cd9da8ad1c98a2c9c2b30cbd5c40faba0047bae (diff)
parent5c6a1177826e5207306511a480b5aae79fd0fefb (diff)
downloadblackbird-obmc-linux-3eb85368460d942005ba305829e279d0fe4767e0.tar.gz
blackbird-obmc-linux-3eb85368460d942005ba305829e279d0fe4767e0.zip
Merge branch 'acpi-pci'
* acpi-pci: ACPI: Make PCI slot detection driver depend on PCI ACPI/IORT: Stub out ACS functions when CONFIG_PCI is not set arm64: select ACPI PCI code only when both features are enabled PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set ACPICA: Remove PCI bits from ACPICA when CONFIG_PCI is unset ACPI: Allow CONFIG_PCI to be unset for reboot ACPI: Move PCI reset to a separate function
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpi_drivers.h7
-rw-r--r--include/acpi/platform/aclinux.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h
index 14499757338f..de1804aeaf69 100644
--- a/include/acpi/acpi_drivers.h
+++ b/include/acpi/acpi_drivers.h
@@ -88,7 +88,14 @@ int acpi_pci_link_free_irq(acpi_handle handle);
struct pci_bus;
+#ifdef CONFIG_PCI
struct pci_dev *acpi_get_pci_dev(acpi_handle);
+#else
+static inline struct pci_dev *acpi_get_pci_dev(acpi_handle handle)
+{
+ return NULL;
+}
+#endif
/* Arch-defined function to add a bus to the system */
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 7451b3bca83a..e3d21d014fcc 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -33,6 +33,10 @@
/* Kernel specific ACPICA configuration */
+#ifdef CONFIG_PCI
+#define ACPI_PCI_CONFIGURED
+#endif
+
#ifdef CONFIG_ACPI_REDUCED_HARDWARE_ONLY
#define ACPI_REDUCED_HARDWARE 1
#endif
OpenPOWER on IntegriCloud