aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2021-07-04 21:32:04 +0200
committerTom Rini <trini@konsulko.com>2021-07-14 16:47:59 -0400
commit10f3e157e8f9d95860033fcaec2953f8cf11d2d6 (patch)
treec569c600bc1632b9ae9079f87843ee3402247749 /common
parentfc3292cbeb4d9fca76a6a1b73acccc63ef0dddd9 (diff)
downloadu-boot-10f3e157e8f9d95860033fcaec2953f8cf11d2d6.zip
u-boot-10f3e157e8f9d95860033fcaec2953f8cf11d2d6.tar.gz
u-boot-10f3e157e8f9d95860033fcaec2953f8cf11d2d6.tar.bz2
board-info: Use sysinfo_get()
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@gmail.com> Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/board_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/board_info.c b/common/board_info.c
index 1cfe34f..89a29c3 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,