aboutsummaryrefslogtreecommitdiff
path: root/board/freescale/p1_p2_rdb_pc
diff options
context:
space:
mode:
authorPali Rohár2022-04-07 12:16:14 +0200
committerPriyanka Jain2022-04-26 17:18:39 +0530
commitccad59dc5cc5f4ba5151a0f9aac2df7f441fb7b2 (patch)
tree76d897d5ac1170fb54ec0ccb31d5255fc11f0afb /board/freescale/p1_p2_rdb_pc
parent1245c6e2582cb67db2a84e60a61cfe5a8d77e068 (diff)
board: freescale: p1_p2_rdb_pc: Do not hang in checkboard()
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>
Diffstat (limited to 'board/freescale/p1_p2_rdb_pc')
-rw-r--r--board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
index b6f0d204267..1e6dfe87d8b 100644
--- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
+++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
@@ -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 ||