]> git.sur5r.net Git - u-boot/blobdiff - board/Barix/ipam390/ipam390.c
env: Rename getenv/_f() to env_get()
[u-boot] / board / Barix / ipam390 / ipam390.c
index fd1965d9f50bc084cd08554a07a5e250c743730d..d203429738e3b84f345111c3933bcb04f6e57730 100644 (file)
@@ -29,6 +29,7 @@
 #include <asm/gpio.h>
 #include <hwconfig.h>
 #include <bootstage.h>
+#include <asm/mach-types.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -156,7 +157,7 @@ u32 get_board_rev(void)
        u32 maxcpuclk = CONFIG_DA850_EVM_MAX_CPU_CLK;
        u32 rev = 0;
 
-       s = getenv("maxcpuclk");
+       s = env_get("maxcpuclk");
        if (s)
                maxcpuclk = simple_strtoul(s, NULL, 10);