summaryrefslogtreecommitdiff
path: root/lib/acpi/acpi_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/acpi/acpi_device.c')
-rw-r--r--lib/acpi/acpi_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acpi/acpi_device.c b/lib/acpi/acpi_device.c
index 95dfac583f..c3439a5988 100644
--- a/lib/acpi/acpi_device.c
+++ b/lib/acpi/acpi_device.c
@@ -422,7 +422,7 @@ int acpi_device_add_power_res(struct acpi_ctx *ctx, u32 tx_state_val,
/* Method (_ON, 0, Serialized) */
acpigen_write_method_serialized(ctx, "_ON", 0);
- if (reset_gpio) {
+ if (has_reset) {
ret = acpigen_set_enable_tx_gpio(ctx, tx_state_val, dw0_read,
dw0_write, &reset, true);
if (ret)