]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: turris_{omnia, mox}: Don't print model two times
authorMarek Behún <kabel@kernel.org>
Thu, 4 Apr 2024 07:50:52 +0000 (09:50 +0200)
committerStefan Roese <sr@denx.de>
Thu, 4 Apr 2024 08:45:27 +0000 (10:45 +0200)
Since commit 8cd4bf7dc9ba ("turris: Use checkboard() instead of
show_board_info()") the model is show two times during boot:
  Model: Turris Omnia
  Model: Turris Omnia

This is because the common function show_board_info() shows it, and
Turris' checkboard() also does.

Remove the second print.

Fixes: 8cd4bf7dc9ba ("turris: Use checkboard() instead of show_board_info()")
Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_mox/turris_mox.c
board/CZ.NIC/turris_omnia/turris_omnia.c

index 3489bdd74bdaced7753a2a04796c632718efb581..1a2f60e3d19026c9b7af34ed4115ca9ef1b8d611 100644 (file)
@@ -565,13 +565,10 @@ static void handle_reset_button(void)
 int checkboard(void)
 {
        int i, ret, board_version, ram_size, is_sd;
-       const char *pub_key, *model;
+       const char *pub_key;
        const u8 *topology;
        u64 serial_number;
 
-       model = fdt_getprop(gd->fdt_blob, 0, "model", NULL);
-       printf("Model: %s\n", model);
-
        ret = mbox_sp_get_board_info(&serial_number, NULL, NULL, &board_version,
                                     &ram_size, NULL);
        if (ret < 0) {
index 6c2d7da528b3961d7592cd43a8686ada4c486239..87e33d88c4005fc364366c03f2e790a67c2ab034 100644 (file)
@@ -933,7 +933,6 @@ int checkboard(void)
        int err;
 
        err = turris_atsha_otp_get_serial_number(serial);
-       printf("Model: Turris Omnia\n");
        printf("  MCU type: %s\n", omnia_get_mcu_type());
        printf("  MCU version: %s\n", omnia_get_mcu_version());
        printf("  RAM size: %i MiB\n", omnia_get_ram_size_gb() * 1024);