SPDX: Convert all of our single license tags to Linux Kernel style
[oweals/u-boot.git] / board / bluegiga / apx4devkit / apx4devkit.c
index 2215c29c9c625c1ffddb4508b86ddc8b740eff37..9aa87f5ccf025618e3a59e7e1ff678dd32f64f90 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Bluegiga APX4 Development Kit
  *
@@ -10,8 +11,6 @@
  * Based on m28evk.c:
  * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
  * on behalf of DENX Software Engineering GmbH
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -133,8 +132,8 @@ void get_board_serial(struct tag_serialnr *serialnr)
 #ifdef CONFIG_REVISION_TAG
 u32 get_board_rev(void)
 {
-       if (getenv("revision#") != NULL)
-               return simple_strtoul(getenv("revision#"), NULL, 10);
+       if (env_get("revision#") != NULL)
+               return simple_strtoul(env_get("revision#"), NULL, 10);
        return 0;
 }
 #endif