]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board-info: Use sysinfo_get()
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 4 Jul 2021 19:32:04 +0000 (21:32 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 14 Jul 2021 20:47:59 +0000 (16:47 -0400)
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>
common/board_info.c

index 1cfe34f7067852d4e2dd4e8b37266d9a40b04173..89a29c322ce75f0f637a34457dcbe65c961dc939 100644 (file)
@@ -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,