u-boot/board/intel
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
..
agilex-socdk Merge branch 'v2021.04-rc4' of https://github.com/lftan/u-boot 2021-03-08 07:41:40 -05:00
bayleybay board: .gitignore: replace dsdt.c by dsdt_generated.c 2022-03-08 08:42:43 -05:00
cherryhill x86: intel: cherryhill: Remove dead code 2020-09-01 13:38:39 +08:00
cougarcanyon2 dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
crownbay x86: intel: crownbay: Remove dead code 2020-09-01 13:38:40 +08:00
edison board: .gitignore: replace dsdt.c by dsdt_generated.c 2022-03-08 08:42:43 -05:00
galileo board: .gitignore: replace dsdt.c by dsdt_generated.c 2022-03-08 08:42:43 -05:00
minnowmax board: .gitignore: replace dsdt.c by dsdt_generated.c 2022-03-08 08:42:43 -05:00
n5x-socdk Merge branch 'next-socfpga' of https://github.com/tienfong/uboot_mainline 2021-08-25 08:23:42 -04:00
slimbootloader x86: intel: slimbootloader: Remove dead code 2020-09-01 13:38:41 +08:00
Kconfig board: intel: Add new slimbootloader board 2019-08-09 22:24:02 +08:00