aboutsummaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-11-28 10:43:20 +0200
committerTom Rini <trini@konsulko.com>2021-01-15 14:36:12 -0500
commit13e0f020f7710418c4f8ed231660f91cdd979254 (patch)
tree305b4fb84bf1209c1acd827b8b56a99e7a659034 /include/asm-generic
parent2a7c9ab47970868ac29b197cfbbbd93440b8fa20 (diff)
downloadu-boot-13e0f020f7710418c4f8ed231660f91cdd979254.zip
u-boot-13e0f020f7710418c4f8ed231660f91cdd979254.tar.gz
u-boot-13e0f020f7710418c4f8ed231660f91cdd979254.tar.bz2
global_data: Enable spl_handoff only if CONFIG_HANDOFF is set
spl_handoff should only be enabled when CONFIG_HANDOFF is set. Drop the nested ifdefs and check for CONFIG_HANDOFF instead. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/global_data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index efa09a1..19f7039 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -412,12 +412,12 @@ struct global_data {
* @new_bloblist: relocated blob list information
*/
struct bloblist_hdr *new_bloblist;
-# ifdef CONFIG_SPL
+#endif
+#if CONFIG_IS_ENABLED(HANDOFF)
/**
* @spl_handoff: SPL hand-off information
*/
struct spl_handoff *spl_handoff;
-# endif
#endif
#if defined(CONFIG_TRANSLATION_OFFSET)
/**