diff --git a/bbswitch.c b/bbswitch.c index 341608f..5f36f6a 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -260,6 +260,7 @@ static void bbswitch_off(void) { pci_save_state(dis_dev); pci_clear_master(dis_dev); pci_disable_device(dis_dev); +#ifdef CONFIG_ACPI do { struct acpi_device *ad = NULL; int r; @@ -274,6 +275,7 @@ static void bbswitch_off(void) { ad->power.state = ACPI_STATE_D0; } } while (0); +#endif pci_set_power_state(dis_dev, PCI_D3cold); if (bbswitch_acpi_off())