]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx6/tx6ul.c
karo: tx6: check ctrlc before returning error code for unsupported baseboard
[karo-tx-uboot.git] / board / karo / tx6 / tx6ul.c
index ce9450f3ad94aa33b6c393eef16c53e501cf5a8d..7f0133cb5c80e603b81f0a595c59652edfcd248f 100644 (file)
@@ -1280,7 +1280,6 @@ static void tx6ul_set_cpu_clock(void)
 
 int board_late_init(void)
 {
-       int ret = 0;
        const char *baseboard;
 
        debug("%s@%d: \n", __func__, __LINE__);
@@ -1325,7 +1324,8 @@ int board_late_init(void)
        } else {
                printf("WARNING: Unsupported baseboard: '%s'\n",
                        baseboard);
-               ret = -EINVAL;
+               if (!had_ctrlc())
+                       return -EINVAL;
        }
 
 exit:
@@ -1334,7 +1334,7 @@ exit:
        debug("%s@%d: \n", __func__, __LINE__);
 
        clear_ctrlc();
-       return ret;
+       return 0;
 }
 
 #ifdef CONFIG_SERIAL_TAG