]> git.sur5r.net Git - u-boot/blobdiff - board/spear/common/spr_misc.c
env: Rename setenv() to env_set()
[u-boot] / board / spear / common / spr_misc.c
index bc92cd6f494320e9122e2aa7277294d3ab3f80e0..3bb4ff14d9ebf951cb48022c45294842ff3f22ee 100644 (file)
@@ -33,10 +33,12 @@ int dram_init(void)
        return 0;
 }
 
-void dram_init_banksize(void)
+int dram_init_banksize(void)
 {
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
        gd->bd->bi_dram[0].size = gd->ram_size;
+
+       return 0;
 }
 
 int board_early_init_f()
@@ -54,12 +56,12 @@ int misc_init_r(void)
        if (!eth_getenv_enetaddr("ethaddr", mac_id) && !i2c_read_mac(mac_id))
                eth_setenv_enetaddr("ethaddr", mac_id);
 #endif
-       setenv("verify", "n");
+       env_set("verify", "n");
 
 #if defined(CONFIG_SPEAR_USBTTY)
-       setenv("stdin", "usbtty");
-       setenv("stdout", "usbtty");
-       setenv("stderr", "usbtty");
+       env_set("stdin", "usbtty");
+       env_set("stdout", "usbtty");
+       env_set("stderr", "usbtty");
 
 #ifndef CONFIG_SYS_NO_DCACHE
        dcache_enable();