]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx28/tx28.c
karo: tx28: check ctrlc before returning error code for unsupported baseboard
[karo-tx-uboot.git] / board / karo / tx28 / tx28.c
index f9cb02df21fb87b98fb53daf73ab4380b10c46a4..c5c4788a58962bc354af97f33368a99839da7445 100644 (file)
@@ -167,10 +167,8 @@ rtc_err:
 
 int board_init(void)
 {
-       if (ctrlc()) {
+       if (ctrlc())
                printf("CTRL-C detected; safeboot enabled\n");
-               return 1;
-       }
 
        /* Address of boot parameters */
 #ifdef CONFIG_OF_LIBFDT
@@ -881,7 +879,8 @@ int board_late_init(void)
        } else {
                printf("WARNING: Unsupported baseboard: '%s'\n",
                        baseboard);
-               ret = -EINVAL;
+               if (!had_ctrlc())
+                       ret = -EINVAL;
        }
 
 exit: