mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-03 09:33:38 +08:00
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>
This commit is contained in:
parent
fc3292cbeb
commit
10f3e157e8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user