Skip to content

Commit 0214da7

Browse files
committed
Merge branches 'acpi-ec' and 'acpi-x86'
* acpi-ec: ACPI: EC: Fix up fast path check in acpi_ec_add() * acpi-x86: ACPI, x86/boot: make acpi_nobgrt static
3 parents 6de0848 + d7e0481 + b5432a6 commit 0214da7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/x86/kernel/acpi/boot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ EXPORT_SYMBOL(acpi_disabled);
4545
#define PREFIX "ACPI: "
4646

4747
int acpi_noirq; /* skip ACPI IRQ initialization */
48-
int acpi_nobgrt; /* skip ACPI BGRT */
48+
static int acpi_nobgrt; /* skip ACPI BGRT */
4949
int acpi_pci_disabled; /* skip ACPI PCI scan and IRQ initialization */
5050
EXPORT_SYMBOL(acpi_pci_disabled);
5151

drivers/acpi/ec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,8 +1589,8 @@ static int acpi_ec_add(struct acpi_device *device)
15891589
strcpy(acpi_device_name(device), ACPI_EC_DEVICE_NAME);
15901590
strcpy(acpi_device_class(device), ACPI_EC_CLASS);
15911591

1592-
if ((boot_ec && boot_ec->handle == device->handle) ||
1593-
!strcmp(acpi_device_hid(device), ACPI_ECDT_HID)) {
1592+
if (boot_ec && (boot_ec->handle == device->handle ||
1593+
!strcmp(acpi_device_hid(device), ACPI_ECDT_HID))) {
15941594
/* Fast path: this device corresponds to the boot EC. */
15951595
ec = boot_ec;
15961596
} else {

0 commit comments

Comments
 (0)