u-boot/arch
Michal Suchanek c726fc01cf dm: treewide: Use uclass_first_device_err when accessing one device
There is a number of users that use uclass_first_device to access the
first and (assumed) only device in uclass.

Some check the return value of uclass_first_device and also that a
device was returned which is exactly what uclass_first_device_err does.

Some are not checking that a device was returned and can potentially
crash if no device exists in the uclass. Finally there is one that
returns NULL on error either way.

Convert all of these to use uclass_first_device_err instead, the return
value will be removed from uclass_first_device in a later patch.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-10-17 21:17:12 -06:00
..
arc treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
arm dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
m68k treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
microblaze treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
mips treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
nios2 treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
powerpc common/board_f: introduce arch_setup_dest_addr() 2022-10-06 21:05:17 -04:00
riscv riscv: Fix build against binutils 2.38 2022-10-07 08:42:51 -04:00
sandbox thermal: add sandbox driver 2022-10-11 16:03:03 -04:00
sh treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
x86 dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
xtensa treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
.gitignore
Kconfig sandbox: Convert to use driver model for SCSI 2022-09-25 13:59:50 -06:00
Kconfig.nxp Convert CONFIG_SYS_FSL_NUM_CC_PLLS to Kconfig 2022-08-12 16:10:49 -04:00
u-boot-elf.lds