]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: freescale: p1_p2_rdb_pc: Do not hang in checkboard()
authorPali Rohár <pali@kernel.org>
Thu, 7 Apr 2022 10:16:14 +0000 (12:16 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:48:39 +0000 (17:18 +0530)
Like in all other checks in checkboard() function, do not hang on error.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c

index b6f0d2042677991d72ba602ca42de64ece52068a..1e6dfe87d8b0722b04b04b8011c04696ef241a3c 100644 (file)
@@ -191,7 +191,7 @@ int checkboard(void)
        if (ret) {
                printf("%s: Cannot find udev for a bus %d\n", __func__,
                       bus_num);
-               return -ENXIO;
+               return 0; /* Don't want to hang() on this error */
        }
 
        if (dm_i2c_read(dev, 0, &in, 1) < 0 ||