Commit 86689776 authored by Sinan Kaya's avatar Sinan Kaya Committed by Rafael J. Wysocki

ACPI: Allow CONFIG_PCI to be unset for reboot

Make PCI reboot conditional on CONFIG_PCI set on the kernel configuration.
Signed-off-by: default avatarSinan Kaya <okaya@kernel.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 36ad7d2b
......@@ -4,6 +4,7 @@
#include <linux/acpi.h>
#include <acpi/reboot.h>
#ifdef CONFIG_PCI
static void acpi_pci_reboot(struct acpi_generic_address *rr, u8 reset_value)
{
unsigned int devfn;
......@@ -21,6 +22,13 @@ static void acpi_pci_reboot(struct acpi_generic_address *rr, u8 reset_value)
pci_bus_write_config_byte(bus0, devfn,
(rr->address & 0xffff), reset_value);
}
#else
static inline void acpi_pci_reboot(struct acpi_generic_address *rr,
u8 reset_value)
{
pr_warn_once("PCI configuration space access is not supported\n");
}
#endif
void acpi_reboot(void)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment