diff mbox series

ARM: meson: stop printing board model after sysinfo update

Message ID 20240124-u-boot-model-print-fix-v1-1-484960069623@linaro.org
State Accepted
Commit 076529725f16f07a5cb2d5feba25d62b5f5a5872
Headers show
Series ARM: meson: stop printing board model after sysinfo update | expand

Commit Message

Neil Armstrong Jan. 24, 2024, 12:47 p.m. UTC
After the sysinfo update, Model is printed twice, remove
the now duplicate Model print from mach-meson/board-info.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
 arch/arm/mach-meson/board-info.c | 10 ----------
 1 file changed, 10 deletions(-)


---
base-commit: 15e7927b5a2d33666af19879577bf0c30ab088fe
change-id: 20240124-u-boot-model-print-fix-cd2e95d67e21

Best regards,

Comments

Neil Armstrong Jan. 30, 2024, 8:36 a.m. UTC | #1
Hi,

On Wed, 24 Jan 2024 13:47:25 +0100, Neil Armstrong wrote:
> After the sysinfo update, Model is printed twice, remove
> the now duplicate Model print from mach-meson/board-info.
> 
> 

Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-amlogic (u-boot-amlogic)

[1/1] ARM: meson: stop printing board model after sysinfo update
      https://source.denx.de/u-boot/custodians/u-boot-amlogic/-/commit/076529725f16f07a5cb2d5feba25d62b5f5a5872
diff mbox series

Patch

diff --git a/arch/arm/mach-meson/board-info.c b/arch/arm/mach-meson/board-info.c
index 95a29da072..d51d9b8f06 100644
--- a/arch/arm/mach-meson/board-info.c
+++ b/arch/arm/mach-meson/board-info.c
@@ -126,13 +126,6 @@  static const char *socinfo_to_soc_id(u32 socinfo)
 	return "Unknown";
 }
 
-static void print_board_model(void)
-{
-	const char *model;
-	model = fdt_getprop(gd->fdt_blob, 0, "model", NULL);
-	printf("Model: %s\n", model ? model : "Unknown");
-}
-
 static unsigned int get_socinfo(void)
 {
 	struct regmap *regmap;
@@ -172,9 +165,6 @@  int checkboard(void)
 {
 	unsigned int socinfo;
 
-	/* print board information */
-	print_board_model();
-
 	socinfo = get_socinfo();
 	if (!socinfo)
 		return 0;