dm: common: Add memory reservation for the video uclass
[oweals/u-boot.git] / common / cmd_load.c
index f6e522cbb3482bf48eeae51cfe0d2e1467404de3..0aa7937fd4bfeed10a283bbdcd42c129350c0bf6 100644 (file)
@@ -10,6 +10,7 @@
  */
 #include <common.h>
 #include <command.h>
+#include <console.h>
 #include <s_record.h>
 #include <net.h>
 #include <exports.h>
@@ -222,7 +223,7 @@ static int read_record(char *buf, ulong len)
                }
 
            /* Check for the console hangup (if any different from serial) */
-           if (gd->jt[XF_getc] != getc) {
+           if (gd->jt->getc != getc) {
                if (ctrlc()) {
                    return (-1);
                }