spl, spl_nor: fix compiler warning
authorHeiko Schocher <hs@denx.de>
Fri, 6 Feb 2015 08:31:36 +0000 (09:31 +0100)
committerTom Rini <trini@ti.com>
Mon, 16 Feb 2015 20:48:34 +0000 (15:48 -0500)
executing "tools/buildman/buildman mpc5xx" drops this warning:

common/spl/spl_nor.c: In function 'spl_nor_load_image':
common/spl/spl_nor.c:26:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]

fix this.

Signed-off-by: Heiko Schocher <hs@denx.de>
common/spl/spl_nor.c

index 2c0e8e00dd2cfeb63021b383cc514725c38d8df2..c2fee01ac1c4717d3094e1fa6d2bcfde3733c46b 100644 (file)
@@ -17,7 +17,7 @@ void spl_nor_load_image(void)
 
 #ifdef CONFIG_SPL_OS_BOOT
        if (!spl_start_uboot()) {
-               struct image_header *header;
+               const struct image_header *header;
 
                /*
                 * Load Linux from its location in NOR flash to its defined