summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>2017-07-30 20:09:38 +0200
committerTom Rini <trini@konsulko.com>2017-08-13 15:17:26 -0400
commit9730bcdc2f6c237fde66b7d81681e380ef0bdedf (patch)
tree061443ce3ab357381fb62dce8a6696ffb1cb0468 /arch
parent5cc9e6b7fa4fac8dc7b709af3bd6f259171ff0bb (diff)
downloadu-boot-9730bcdc2f6c237fde66b7d81681e380ef0bdedf.tar.gz
u-boot-9730bcdc2f6c237fde66b7d81681e380ef0bdedf.tar.bz2
u-boot-9730bcdc2f6c237fde66b7d81681e380ef0bdedf.zip
arm: spear: do not return random value from stack
If the NOR device is not available do not return a random value from the stack. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/arm926ejs/spear/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/arm926ejs/spear/spl.c b/arch/arm/cpu/arm926ejs/spear/spl.c
index a60f5838de..ba1e559157 100644
--- a/arch/arm/cpu/arm926ejs/spear/spl.c
+++ b/arch/arm/cpu/arm926ejs/spear/spl.c
@@ -222,7 +222,7 @@ static void snor_init(void)
u32 spl_boot_device(void)
{
- u32 mode;
+ u32 mode = 0;
/* Currently only SNOR is supported as the only */
if (snor_boot_selected()) {