mirror of
https://github.com/smaeul/u-boot.git
synced 2025-11-20 02:39:50 +00:00
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>
This commit is contained in:
parent
c726fc01cf
commit
1d0617bd74
@ -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);
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ int at91_set_eth1addr(int offset)
|
||||
return ret;
|
||||
|
||||
/* attempt to obtain a second eeprom device */
|
||||
ret = uclass_next_device(&dev);
|
||||
ret = uclass_next_device_err(&dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user