]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Do not stop uclass iteration on error
authorMichal Suchanek <msuchanek@suse.de>
Wed, 12 Oct 2022 19:58:09 +0000 (21:58 +0200)
committerSimon Glass <sjg@chromium.org>
Sat, 29 Oct 2022 13:36:33 +0000 (07:36 -0600)
commite388ca0222db23b2907b4840370b273d178ec8ad
treeada26fe279934fbb18d69324010b3ce1f55ffb63
parentaf278c611f514e42ae527e7b801123d04e71d86b
dm: core: Do not stop uclass iteration on error

When probing a device fails NULL pointer is returned, and following
devices in uclass list cannot be iterated. Skip to next device on error
instead.

With that the only condition under which these simple iteration
functions return error is when the dm is not initialized at uclass_get
time. This is not all that interesting, change return type to void.

Fixes: 6494d708bf ("dm: Add base driver model support")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/uclass.c
include/dm/uclass.h
test/dm/core.c
test/dm/test-fdt.c