mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
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>
This commit is contained in:
parent
d975da6363
commit
1781ec67f4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
* =====================
|
||||
|
|
Loading…
Reference in a new issue