u-boot/arch/arm/mach-omap2
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
..
am33xx dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
omap3 Nokia RX-51: Move board required options from defconfig to Kconfig 2022-08-20 16:18:40 -04:00
omap4 arm: Remove kc1 board 2021-04-10 08:01:24 -04:00
omap5 arm: mach-omap2: load/start remoteproc IPU1/IPU2 2022-02-08 09:41:27 -05:00
abb.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
boot-common.c spl: mmc: extend spl_mmc_boot_mode() to take mmc argument 2022-04-04 23:24:17 +01:00
clocks-common.c arm: mach-omap2: load/start remoteproc IPU1/IPU2 2022-02-08 09:41:27 -05:00
config.mk Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
config_secure.mk spl: Use SPL_TEXT_BASE instead of ISW_ENTRY_ADDR 2022-07-25 14:57:27 -04:00
emif-common.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fdt-common.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
hwinit-common.c event: Convert arch_cpu_init_dm() to use events 2022-03-10 08:28:36 -05:00
Kconfig Convert CONFIG_SYS_L2_PL310 to Kconfig 2022-09-01 17:18:42 -04:00
lowlevel_init.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00
mem-common.c am335x, guardian: mem: Add board dependent mem values 2021-07-15 17:56:03 +05:30
omap-cache.c arm: omap2: remove arm_init_domains 2021-03-02 15:53:37 -05:00
pipe3-phy.c WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
pipe3-phy.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
reset.c reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
sata.c arm: omap2plus: Move CONFIG_SYS_PTV out of CONFIG namespace 2022-06-06 12:09:00 -04:00
sec-common.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sysinfo-common.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer.c arm: omap2plus: Move CONFIG_SYS_PTV out of CONFIG namespace 2022-06-06 12:09:00 -04:00
u-boot-spl.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
utils.c common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
vc.c omap: Drop CONFIG_OMAP_VC_I2C_HS_MCODE 2017-05-15 10:40:03 -04:00