Move bootretry code into bootretry.c and clean up
[oweals/u-boot.git] / board / hymod / input.c
index 184902cde5764b151ddab88cea4dd62384023ae9..2f857c06ae92683bd515fedaf60db2ac5f408d3a 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 #include <common.h>
+#include <bootretry.h>
+#include <cli.h>
 
 int
 hymod_get_serno (const char *prompt)
@@ -18,7 +20,7 @@ hymod_get_serno (const char *prompt)
                reset_cmd_timeout ();
 #endif
 
-               n = readline (prompt);
+               n = cli_readline(prompt);
 
                if (n < 0)
                        return (n);
@@ -46,7 +48,7 @@ hymod_get_ethaddr (void)
                reset_cmd_timeout ();
 #endif
 
-               n = readline ("Enter board ethernet address: ");
+               n = cli_readline("Enter board ethernet address: ");
 
                if (n < 0)
                        return (n);