X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fbluegiga%2Fapx4devkit%2Fapx4devkit.c;h=9aa87f5ccf025618e3a59e7e1ff678dd32f64f90;hb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046;hp=08e79bd7ac48a2ef78bd7f6ff0871dc085330c4b;hpb=aaf5e825606a70ddc8fca8e366d8c16a6fd3cc7c;p=oweals%2Fu-boot.git diff --git a/board/bluegiga/apx4devkit/apx4devkit.c b/board/bluegiga/apx4devkit/apx4devkit.c index 08e79bd7ac..9aa87f5ccf 100644 --- a/board/bluegiga/apx4devkit/apx4devkit.c +++ b/board/bluegiga/apx4devkit/apx4devkit.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Bluegiga APX4 Development Kit * @@ -10,13 +11,12 @@ * Based on m28evk.c: * Copyright (C) 2011 Marek Vasut * on behalf of DENX Software Engineering GmbH - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include #include +#include #include #include #include @@ -132,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