aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/i2c/nau8825/nau8825.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/i2c/nau8825/nau8825.c')
-rw-r--r--src/drivers/i2c/nau8825/nau8825.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/i2c/nau8825/nau8825.c b/src/drivers/i2c/nau8825/nau8825.c
index 3cf5edd656..86d4306ab7 100644
--- a/src/drivers/i2c/nau8825/nau8825.c
+++ b/src/drivers/i2c/nau8825/nau8825.c
@@ -55,7 +55,7 @@ static void nau8825_fill_ssdt(struct device *dev)
acpigen_write_name_string("_HID", NAU8825_ACPI_HID);
acpigen_write_name_integer("_UID", 0);
acpigen_write_name_string("_DDN", dev->chip_ops->name);
- acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON);
+ acpigen_write_STA(acpi_device_status(dev));
/* Resources */
acpigen_write_name("_CRS");