summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Kisky <troykiskyboundary@gmail.com>2023-03-14 00:31:44 +0300
committerTom Rini <trini@konsulko.com>2023-05-10 23:45:42 +0300
commit1781ec67f43ae6fcaec628831b09a587f5cab174 (patch)
tree4b6fc541bf21bcd0dc2afa9b832963393e2bf22b
parentd975da6363804fc0dd677f5b22b5f27074674f5b (diff)
downloadu-boot-1781ec67f43ae6fcaec628831b09a587f5cab174.tar.xz
power: pmic: add dm style definitions if not CONFIG_IS_ENABLED(POWER_LEGACY)
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 70f2709bd0..636221692d 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
* =====================