aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Kisky <troykiskyboundary@gmail.com>2023-03-13 14:31:44 -0700
committerTom Rini <trini@konsulko.com>2023-05-09 11:38:33 -0400
commit2b6256427fd1d80e667e4039d96c4888760c8da1 (patch)
tree5dc092473196eb76f8912b74ccda1b7fb15a114b
parent4e0d87b420eff647fc17f38c968ce25105ddad41 (diff)
downloadu-boot-WIP/2023-05-09-CONFIG_IS_ENABLED-vs-IS_ENABLED-cleanups.zip
u-boot-WIP/2023-05-09-CONFIG_IS_ENABLED-vs-IS_ENABLED-cleanups.tar.gz
u-boot-WIP/2023-05-09-CONFIG_IS_ENABLED-vs-IS_ENABLED-cleanups.tar.bz2
power: pmic: add dm style definitions if not CONFIG_IS_ENABLED(POWER_LEGACY)WIP/2023-05-09-CONFIG_IS_ENABLED-vs-IS_ENABLED-cleanups
This avoids an error in converting to CONFIG_IS_ENABLED(DM_PMIC). Many boards SPL code needs these definitions to compile, even if the functions are not linked. Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/power/pmic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/power/pmic.h b/include/power/pmic.h
index 70f2709..6362216 100644
--- a/include/power/pmic.h
+++ b/include/power/pmic.h
@@ -86,7 +86,7 @@ struct pmic {
#endif /* CONFIG_IS_ENABLED(POWER_LEGACY) */
/* TODO: Change to CONFIG_IS_ENABLED(DM_PMIC) when SPL_DM_PMIC exists */
-#ifdef CONFIG_DM_PMIC
+#if defined(CONFIG_DM_PMIC) || !CONFIG_IS_ENABLED(POWER_LEGACY)
/**
* U-Boot PMIC Framework
* =====================