u-boot/arch/x86
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
..
cpu dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
dts spl: x86: Correct the binman symbols for SPL 2022-02-22 10:05:44 -07:00
include/asm board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
lib dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
config.mk x86: efi: Set the correct link flags for the 64-bit EFI app 2022-01-15 10:57:22 +01:00
Kconfig spl: Ensure all SPL symbols in Kconfig have some SPL dependency 2022-07-07 09:29:08 -04:00
Makefile x86: Allow 16-bit init to be in TPL 2019-05-08 13:02:13 +08:00