summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLey Foon Tan <ley.foon.tan@intel.com>2018-06-14 18:45:20 +0800
committerTom Rini <trini@konsulko.com>2018-07-09 15:25:45 -0400
commitd99894dd3a713ea6226ac39a7e332b55cf8aca49 (patch)
tree7db717c813c2c039a36301035af3f158641eaac0
parentbfc6bae8fa1f2d8a9c51548767b02f1a1e0ffe52 (diff)
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 <ley.foon.tan@intel.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/reset.h2
1 files changed, 1 insertions, 1 deletions
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.
*