u-boot/arch/arm/mach-omap2/am33xx
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
..
board.c dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
chilisom.c Convert CONFIG_SKIP_LOWLEVEL_INIT et al to Kconfig 2021-08-31 17:47:49 -04:00
clk_synthesizer.c Convert CONFIG_CLOCK_SYNTHESIZER to Kconfig 2022-04-01 10:28:47 -04:00
clock.c ti: am33xx: fix do_enable_clocks() to accept NULL parameters 2021-01-12 10:58:04 +05:30
clock_am33xx.c arm: am335x: add support for i2c2 bus 2021-05-13 13:09:09 -04:00
clock_am43xx.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clock_ti814x.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
clock_ti816x.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ddr.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
emif4.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fdt.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
hw_data.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig arm: Remove cm_t335 board 2022-08-20 21:18:15 -04:00
Makefile Convert CONFIG_SKIP_LOWLEVEL_INIT et al to Kconfig 2021-08-31 17:47:49 -04:00
mux.c arm: am33xx: Make pin multiplexing functions optional 2017-09-22 07:40:04 -04:00
prcm-regs.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sys_info.c common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
ti816x_emif4.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00