summaryrefslogtreecommitdiff
path: root/cmd/sb.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sb.c')
-rw-r--r--cmd/sb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/sb.c b/cmd/sb.c
index 0d55818e3c6..db485fddfca 100644
--- a/cmd/sb.c
+++ b/cmd/sb.c
@@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
-#include <common.h>
#include <command.h>
#include <dm.h>
#include <spl.h>
@@ -15,8 +14,10 @@ static int do_sb_handoff(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
#if CONFIG_IS_ENABLED(HANDOFF)
- if (gd->spl_handoff)
- printf("SPL handoff magic %lx\n", gd->spl_handoff->arch.magic);
+ struct spl_handoff *handoff = handoff_get();
+
+ if (handoff)
+ printf("SPL handoff magic %lx\n", handoff->arch.magic);
else
printf("SPL handoff info not received\n");