aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/internal.h
diff options
context:
space:
mode:
authorSinan Kaya <okaya@kernel.org>2019-01-05 10:05:56 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-01-15 23:16:18 +0100
commit1622745551db05071ed7263abf768007f7cbd3ae (patch)
treeb452e6825f6c4f443ee3bc9b3e2f7f4bd243d58c /drivers/acpi/internal.h
parentLinux 5.0-rc2 (diff)
downloadlinux-dev-1622745551db05071ed7263abf768007f7cbd3ae.tar.xz
linux-dev-1622745551db05071ed7263abf768007f7cbd3ae.zip
ACPI / LPSS: Make PCI dependency explicit
After commit 5d32a66541c4 (PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set), it is possible to build ACPI without any PCI support. This code depends on PCI. Compile only when PCI is present. Fixes: 5d32a66541c46 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set") Signed-off-by: Sinan Kaya <okaya@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r--drivers/acpi/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h
index 7e6952edb5b0..6a9e1fb8913a 100644
--- a/drivers/acpi/internal.h
+++ b/drivers/acpi/internal.h
@@ -81,7 +81,11 @@ void acpi_debugfs_init(void);
#else
static inline void acpi_debugfs_init(void) { return; }
#endif
+#ifdef CONFIG_PCI
void acpi_lpss_init(void);
+#else
+static inline void acpi_lpss_init(void) {}
+#endif
void acpi_apd_init(void);