Commit b9ea0c3a2076c3ef8c150d35aa31f2329ad9efef

Authored by Heiko Schocher
Committed by Tom Rini
1 parent 30d06bd2fd

spl, spl_nor: fix compiler warning

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

common/spl/spl_nor.c
... ... @@ -17,7 +17,7 @@
17 17  
18 18 #ifdef CONFIG_SPL_OS_BOOT
19 19 if (!spl_start_uboot()) {
20   - struct image_header *header;
  20 + const struct image_header *header;
21 21  
22 22 /*
23 23 * Load Linux from its location in NOR flash to its defined