aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-k3
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2022-10-12 21:58:00 +0200
committerSimon Glass <sjg@chromium.org>2022-10-17 21:17:12 -0600
commit1d0617bd747b59251782aa9f87a23e634cf543ac (patch)
tree7b1bb422dc86e74024f242cad157ee8a4eff97a8 /arch/arm/mach-k3
parentc726fc01cf669e3e2979da8665ef660e7d3ba464 (diff)
downloadu-boot-1d0617bd747b59251782aa9f87a23e634cf543ac.tar.gz
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>
Diffstat (limited to 'arch/arm/mach-k3')
-rw-r--r--arch/arm/mach-k3/j721s2_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-k3/j721s2_init.c b/arch/arm/mach-k3/j721s2_init.c
index 12da8136f9e..dd0c7ba18f0 100644
--- a/arch/arm/mach-k3/j721s2_init.c
+++ b/arch/arm/mach-k3/j721s2_init.c
@@ -164,7 +164,7 @@ void board_init_f(ulong dummy)
if (ret)
panic("DRAM 0 init failed: %d\n", ret);
- ret = uclass_next_device(&dev);
+ ret = uclass_next_device_err(&dev);
if (ret)
panic("DRAM 1 init failed: %d\n", ret);
}