git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f183d2c
)
x86: apl: Correct usage of IS_ENABLED() macro in acpi-pmc-uclass.c
author
Tom Rini
<trini@konsulko.com>
Wed, 26 Feb 2025 20:31:15 +0000
(14:31 -0600)
committer
Tom Rini
<trini@konsulko.com>
Fri, 9 May 2025 16:39:48 +0000
(10:39 -0600)
This file was using IS_ENABLED() to test for CONFIG flags but omitted
the CONFIG_ prefix and so did not work as expected.
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/power/acpi_pmc/acpi-pmc-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/power/acpi_pmc/acpi-pmc-uclass.c
b/drivers/power/acpi_pmc/acpi-pmc-uclass.c
index
1e94104
..
4048840
100644
(file)
--- a/
drivers/power/acpi_pmc/acpi-pmc-uclass.c
+++ b/
drivers/power/acpi_pmc/acpi-pmc-uclass.c
@@
-141,7
+141,7
@@
int pmc_prev_sleep_state(struct udevice *dev)
if (upriv->pm1_sts & WAK_STS) {
switch (acpi_sleep_from_pm1(upriv->pm1_cnt)) {
case ACPI_S3:
- if (IS_ENABLED(HAVE_ACPI_RESUME))
+ if (IS_ENABLED(
CONFIG_
HAVE_ACPI_RESUME))
prev_sleep_state = ACPI_S3;
break;
case ACPI_S5: