]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/arm926ejs/mxs/spl_boot.c
ARM: MXS: fix Uninitialized variable error
[u-boot] / arch / arm / cpu / arm926ejs / mxs / spl_boot.c
index e643eade1b0c07e90f5afa1072f959de60069493..d29b9aaf3da576889bfb02620e8e7aeb106b8db7 100644 (file)
@@ -19,7 +19,9 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 static gd_t gdata __section(".data");
+#ifdef CONFIG_SPL_SERIAL_SUPPORT
 static bd_t bdata __section(".data");
+#endif
 
 /*
  * This delay function is intended to be used only in early stage of boot, where
@@ -116,6 +118,8 @@ static void mxs_spl_fixup_vectors(void)
         * fine.
         */
        extern uint32_t _start;
+
+       /* cppcheck-suppress nullPointer */
        memcpy(0x0, &_start, 0x60);
 }