dm: treewide: Use uclass_next_device_err when accessing second device
authorMichal Suchanek <msuchanek@suse.de>
Wed, 12 Oct 2022 19:58:00 +0000 (21:58 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Oct 2022 03:17:12 +0000 (21:17 -0600)
commit1d0617bd747b59251782aa9f87a23e634cf543ac
tree7b1bb422dc86e74024f242cad157ee8a4eff97a8
parentc726fc01cf669e3e2979da8665ef660e7d3ba464
dm: treewide: Use uclass_next_device_err when accessing second device

There are a couple users of uclass_next_device return value that get the
first device by other means and use uclass_next_device assuming the
following device in the uclass is related to the first one.

Use uclass_next_device_err because the return value from
uclass_next_device will be removed in a later patch.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-k3/j721s2_init.c
board/atmel/common/mac_eeprom.c