From: Troy Kisky Date: Mon, 13 Mar 2023 21:31:44 +0000 (-0700) Subject: power: pmic: add dm style definitions if not CONFIG_IS_ENABLED(POWER_LEGACY) X-Git-Tag: v2023.10~102^2~33^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1781ec67f43ae6fcaec628831b09a587f5cab174;p=platform%2Fkernel%2Fu-boot.git 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 Reviewed-by: Simon Glass --- 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 * =====================