]> git.sur5r.net Git - u-boot/commitdiff
env_onenand: change env_address type from unsigned long to loff_t
authorHeungJun Kim <riverful.kim@gmail.com>
Tue, 30 Jun 2009 05:42:22 +0000 (14:42 +0900)
committerScott Wood <scottwood@freescale.com>
Tue, 7 Jul 2009 22:58:11 +0000 (17:58 -0500)
If use the onenand boot, the env_relocate_spec() calls mtd->read(),
and the type of the argument #2 of mtd->read() was changed to loff_t.
But, the "env_addr" type is still unsigned long, thus this patch change
the type from unsigned long to loff_t.

Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: HeungJun, Kim <riverful.kim@samsung.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/env_onenand.c

index ed77051724d2c483e25619b4afd24fbef07e22f1..48089a9603833f055726a0b4cbc35f2420ac8521 100644 (file)
@@ -58,7 +58,7 @@ uchar env_get_char_spec(int index)
 
 void env_relocate_spec(void)
 {
-       unsigned long env_addr;
+       loff_t env_addr;
        int use_default = 0;
        size_t retlen;