]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET)
authorLey Foon Tan <ley.foon.tan@intel.com>
Thu, 14 Jun 2018 10:45:20 +0000 (18:45 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 9 Jul 2018 19:25:45 +0000 (15:25 -0400)
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 <ley.foon.tan@intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/reset.h

index 201bafc67f27913485fa0e5fb99345f2b0b73559..a7bbc1c331bcc486ec80b9fcd6d7a3c4937e9766 100644 (file)
@@ -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.
  *