configs: rpi: set NR_DRAM_BANKS to four
[oweals/u-boot.git] / cmd / setexpr.c
index af210225f1438727e846a17ccaa88f60b10f0372..770dc24d2b7a32579a05c8aed36b40bc234252b6 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2008 Freescale Semiconductor, Inc.
  * Copyright 2013 Wolfgang Denk <wd@denx.de>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -12,6 +11,8 @@
 #include <common.h>
 #include <config.h>
 #include <command.h>
+#include <env.h>
+#include <log.h>
 #include <mapmem.h>
 
 static ulong get_arg(char *s, int w)
@@ -290,7 +291,8 @@ static int regex_sub(const char *name,
 }
 #endif
 
-static int do_setexpr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_setexpr(struct cmd_tbl *cmdtp, int flag, int argc,
+                     char *const argv[])
 {
        ulong a, b;
        ulong value;