From: Ley Foon Tan Date: Fri, 1 Jun 2018 16:45:19 +0800 Subject: [U-Boot] [PATCH v4 1/4] include: reset: check CONFIG_SPL_RESET_SUPPORT In-Reply-To: <1527842722-15593-1-git-send-email-ley.foon.tan@intel.com> References: <1527842722-15593-1-git-send-email-ley.foon.tan@intel.com> Message-ID: <1527842722-15593-2-git-send-email-ley.foon.tan@intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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)) /** * reset_get_by_index - Get/request a reset signal by integer index. * -- 2.2.2