]> git.sur5r.net Git - u-boot/blobdiff - board/highbank/highbank.c
ARM: rmobile: Enable MTD partitioning on Gen2 with SF
[u-boot] / board / highbank / highbank.c
index e51043aa91472ed221b93c7ee2b34cecfd9abec4..996daffa1b64574fb13b8c1b5becbfa785d3a510 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2010-2011 Calxeda, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -80,7 +79,7 @@ int misc_init_r(void)
 
        boot_choice = readl(HB_SREG_A9_BOOT_SRC_STAT) & 0xff;
        sprintf(envbuffer, "bootcmd%d", boot_choice);
-       if (getenv(envbuffer)) {
+       if (env_get(envbuffer)) {
                sprintf(envbuffer, "run bootcmd%d", boot_choice);
                env_set("bootcmd", envbuffer);
        } else