]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/powerpc/lib/bootm.c
env: Rename getenv/_f() to env_get()
[people/ms/u-boot.git] / arch / powerpc / lib / bootm.c
index 0e204027af21491b258010030cee9a688135ec47..932c38ab4c2bcd2e342bb98e04602ba91a44f60b 100644 (file)
@@ -275,7 +275,8 @@ static void set_clocks_in_mhz (bd_t *kbd)
 {
        char    *s;
 
-       if ((s = getenv ("clocks_in_mhz")) != NULL) {
+       s = env_get("clocks_in_mhz");
+       if (s) {
                /* convert all clock information to MHz */
                kbd->bi_intfreq /= 1000000L;
                kbd->bi_busfreq /= 1000000L;