aboutsummaryrefslogtreecommitdiff
path: root/cmd/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/load.c')
-rw-r--r--cmd/load.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/load.c b/cmd/load.c
index 1224a7f85b..e44ae0d56b 100644
--- a/cmd/load.c
+++ b/cmd/load.c
@@ -14,7 +14,9 @@
#include <efi_loader.h>
#include <env.h>
#include <exports.h>
+#ifdef CONFIG_MTD_NOR_FLASH
#include <flash.h>
+#endif
#include <image.h>
#include <lmb.h>
#include <mapmem.h>