]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd_sf: include header file common.h before div64.h
authorMingkai Hu <Mingkai.hu@freescale.com>
Sun, 7 Apr 2013 22:13:32 +0000 (22:13 +0000)
committerTom Rini <trini@ti.com>
Mon, 8 Apr 2013 16:00:51 +0000 (12:00 -0400)
The header file div64.h includes <asm/types.h> which defines
the phys_addr_t according to the macro CONFIG_PHYS_64BIT, while
the macro CONFIG_PHYS_64BIT is included in common.h which comes
after div64.h, so in order to get consistent type definition for
phys_addr_t, common.h should be included before div64.h, Or else,
the parameters of phys_addr_t type will be passed wrongly when
CONFIG_PHYS_64BIT is defined.

Signed-off-by: Mingkai Hu <Mingkai.Hu@freescale.com>
common/cmd_sf.c

index 3f0d414954c3e317507b899ec61391d07b38a77b..0a17782d662c1f950029935970bf661b56387b23 100644 (file)
@@ -5,8 +5,8 @@
  * Licensed under the GPL-2 or later.
  */
 
-#include <div64.h>
 #include <common.h>
+#include <div64.h>
 #include <malloc.h>
 #include <spi_flash.h>