[PATCH 1/2] board-info: Use sysinfo_get()
Marek Vasut
marek.vasut at gmail.com
Sun Jul 4 21:32:04 CEST 2021
Replace uclass_first_device_err(UCLASS_SYSINFO, &dev) with sysinfo_get(&dev).
The board_info code may use sysinfo to print board information, so use the
sysinfo functions consistently. The sysinfo_get() is internally implemented
as return uclass_first_device_err(UCLASS_SYSINFO, &dev) anyway, so there is
no functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
Cc: Marcel Ziswiler <marcel.ziswiler at toradex.com>
Cc: Simon Glass <sjg at chromium.org>
---
common/board_info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/board_info.c b/common/board_info.c
index 1cfe34f706..89a29c322c 100644
--- a/common/board_info.c
+++ b/common/board_info.c
@@ -31,7 +31,7 @@ int __weak show_board_info(void)
if (IS_ENABLED(CONFIG_SYSINFO)) {
/* This might provide more detail */
- ret = uclass_first_device_err(UCLASS_SYSINFO, &dev);
+ ret = sysinfo_get(&dev);
if (!ret)
ret = sysinfo_get_str(dev,
SYSINFO_ID_BOARD_MODEL,
--
2.30.2
More information about the U-Boot
mailing list