summaryrefslogtreecommitdiff
path: root/drivers/acpi/osl.c
diff options
context:
space:
mode:
authorSinan Kaya <okaya@kernel.org>2018-12-20 01:46:55 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-12-20 12:19:49 +0300
commitbd23fac3eaaa8bd79c02a2f139f68ac6424a9a7c (patch)
tree0d6bb37ba7cab45d908b43721ba4041ea4d14e90 /drivers/acpi/osl.c
parent86689776878f0c1aee77604b9c5fce2ffb9ec65e (diff)
downloadlinux-bd23fac3eaaa8bd79c02a2f139f68ac6424a9a7c.tar.xz
ACPICA: Remove PCI bits from ACPICA when CONFIG_PCI is unset
Allow ACPI to be built without PCI support in place. Signed-off-by: Sinan Kaya <okaya@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r--drivers/acpi/osl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index b48874b8e1ea..f29e427d0d1d 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -769,6 +769,7 @@ acpi_os_write_memory(acpi_physical_address phys_addr, u64 value, u32 width)
return AE_OK;
}
+#ifdef CONFIG_PCI
acpi_status
acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,
u64 *value, u32 width)
@@ -827,6 +828,7 @@ acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,
return (result ? AE_ERROR : AE_OK);
}
+#endif
static void acpi_os_execute_deferred(struct work_struct *work)
{