SPDX: Convert all of our single license tags to Linux Kernel style
[oweals/u-boot.git] / board / freescale / common / fsl_chain_of_trust.c
index dfe5d204d4a3e3ed1184f961cdd82a432c9d1776..97376c416529dbbcfa6032e34437718a77792a46 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2015 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -80,12 +79,12 @@ int fsl_setenv_chain_of_trust(void)
         * bootdelay = 0 (To disable Boot Prompt)
         * bootcmd = CONFIG_CHAIN_BOOT_CMD (Validate and execute Boot script)
         */
-       setenv("bootdelay", "0");
+       env_set("bootdelay", "0");
 
 #ifdef CONFIG_ARM
-       setenv("secureboot", "y");
+       env_set("secureboot", "y");
 #else
-       setenv("bootcmd", CONFIG_CHAIN_BOOT_CMD);
+       env_set("bootcmd", CONFIG_CHAIN_BOOT_CMD);
 #endif
 
        return 0;