From: Ley Foon Tan Date: Thu, 14 Jun 2018 18:45:20 +0800 Subject: [U-Boot] [PATCH v6 2/5] include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET) In-Reply-To: <1528973123-21858-1-git-send-email-ley.foon.tan@intel.com> References: <1528973123-21858-1-git-send-email-ley.foon.tan@intel.com> Message-ID: <1528973123-21858-3-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 Change to use CONFIG_IS_ENABLED(DM_RESET), so this can work in SPL build (CONFIG_SPL_DM_RESET) and U-boot build (CONFIG_DM_RESET). Signed-off-by: Ley Foon Tan --- include/reset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/reset.h b/include/reset.h index 201bafc..a7bbc1c 100644 --- a/include/reset.h +++ b/include/reset.h @@ -77,7 +77,7 @@ struct reset_ctl_bulk { unsigned int count; }; -#ifdef CONFIG_DM_RESET +#if CONFIG_IS_ENABLED(DM_RESET) /** * reset_get_by_index - Get/request a reset signal by integer index. * -- 2.2.2