summaryrefslogtreecommitdiff
path: root/arch/microblaze/cpu
diff options
context:
space:
mode:
authorOvidiu Panait <ovpanait@gmail.com>2023-01-25 19:41:55 +0300
committerMichal Simek <michal.simek@amd.com>2023-01-27 10:38:34 +0300
commit4dd5a9fcb5b1f314d6e56e9a2bedb7e8dbc31bb3 (patch)
tree2dc50316f6af4105b6874df7566d0cdbe1eac6cd /arch/microblaze/cpu
parent2fe2be2d279cc4bd62b12126668b298adcea4e54 (diff)
downloadu-boot-4dd5a9fcb5b1f314d6e56e9a2bedb7e8dbc31bb3.tar.xz
microblaze: spl: wrap spl_start_uboot() in SPL_OS_BOOT ifdefs
Make spl_start_uboot() available only if CONFIG_SPL_OS_BOOT is enabled, since it is only used for falcon mode. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> Link: https://lore.kernel.org/r/20230125164157.1638680-1-ovpanait@gmail.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'arch/microblaze/cpu')
-rw-r--r--arch/microblaze/cpu/spl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/microblaze/cpu/spl.c b/arch/microblaze/cpu/spl.c
index cea6d56f16..b9ff9c3702 100644
--- a/arch/microblaze/cpu/spl.c
+++ b/arch/microblaze/cpu/spl.c
@@ -41,17 +41,15 @@ void __noreturn jump_to_image_linux(struct spl_image_info *spl_image)
image_entry(NULL, 0, (ulong)spl_image->arg);
}
-#endif /* CONFIG_SPL_OS_BOOT */
int spl_start_uboot(void)
{
-#ifdef CONFIG_SPL_OS_BOOT
if (boot_linux)
return 0;
-#endif
return 1;
}
+#endif /* CONFIG_SPL_OS_BOOT */
int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{