diff options
author | Troy Kisky <troykiskyboundary@gmail.com> | 2023-03-13 14:31:44 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-28 09:45:40 -0400 |
commit | 9ac78d4cc755f6b54c9d4357bfdad3d5842d0761 (patch) | |
tree | 5067a73d70fdb9ce1c61e0839c3710deccfbf727 | |
parent | e6c5bf50833d4319dc87d08bd5646d3e9aa530d6 (diff) | |
download | u-boot-9ac78d4cc755f6b54c9d4357bfdad3d5842d0761.zip u-boot-9ac78d4cc755f6b54c9d4357bfdad3d5842d0761.tar.gz u-boot-9ac78d4cc755f6b54c9d4357bfdad3d5842d0761.tar.bz2 |
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.h | 2 |
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 * ===================== |