From: Ley Foon Tan Date: Thu, 14 Jun 2018 10:45:20 +0000 (+0800) Subject: include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET) X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d99894dd3a713ea6226ac39a7e332b55cf8aca49;p=u-boot.git include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET) 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 Reviewed-by: Simon Glass --- diff --git a/include/reset.h b/include/reset.h index 201bafc67f..a7bbc1c331 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. *