Merge tag 'dm-pull-15nov20' of git://git.denx.de/u-boot-dm
[platform/kernel/u-boot.git] / cmd / conitrace.c
index e45e87a..811f5c6 100644 (file)
@@ -7,6 +7,7 @@
  */
 #include <common.h>
 #include <command.h>
+#include <linux/delay.h>
 
 static int do_conitrace(struct cmd_tbl *cmdtp, int flag, int argc,
                        char *const argv[])
@@ -18,10 +19,10 @@ static int do_conitrace(struct cmd_tbl *cmdtp, int flag, int argc,
 
        /* Empty input buffer */
        while (tstc())
-               getc();
+               getchar();
 
        for (;;) {
-               int c = getc();
+               int c = getchar();
 
                if (first && (c == 'x' || c == 'X'))
                        break;