Hi, On 1 June 2018 at 02:45, Ley Foon Tan <ley.foon....@intel.com> wrote: > Add checking for CONFIG_SPL_RESET_SUPPORT to fix compilation error when > CONFIG_DM_RESET is enabled but CONFIG_SPL_RESET_SUPPORT is disabled in SPL > build. > > Signed-off-by: Ley Foon Tan <ley.foon....@intel.com> > --- > include/reset.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/include/reset.h b/include/reset.h > index 201bafc..0ac0a47 100644 > --- a/include/reset.h > +++ b/include/reset.h > @@ -77,7 +77,8 @@ struct reset_ctl_bulk { > unsigned int count; > }; > > -#ifdef CONFIG_DM_RESET > +#if (!defined(CONFIG_SPL_BUILD) && defined(CONFIG_DM_RESET)) || \ > + (defined(CONFIG_SPL_RESET_SUPPORT) && defined(CONFIG_DM_RESET))
CONFIG_SPL_RESET_SUPPORT should move to Kconfig Also it should be renamed to CONFIG_SPL_DM_RESET so that you can use: #if CONFIG_IS_ENABLED(DM_RESET) > /** > * reset_get_by_index - Get/request a reset signal by integer index. > * > -- > 2.2.2 > Regards, Simon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot