diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-04-06 10:27:38 +0300 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@foss.st.com> | 2021-04-09 12:53:00 +0300 |
commit | 5fc6e8694ab837e655fd306e38c48c234478649b (patch) | |
tree | 4500391ea9edf9ddde1231466513add5db2f4ea9 /arch/arm | |
parent | 4fb7b3e10891ce8fc2d36e02e6d2f98df672e986 (diff) | |
download | u-boot-5fc6e8694ab837e655fd306e38c48c234478649b.tar.xz |
stm32mp: update uart number in trace of serial device not found
Align the uart number in the trace of setup_boot_mode() with the name of
the uart/usart device (start at 1) and not with the instance value
(start at 0), i.e. the serial device sequence number and the index in
serial_addr[].
Fixes: f49eb16c17e2c ("stm32mp: stm32prog: replace alias by serial
device sequence number")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-stm32mp/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c index bc2db535be..782df8b7ae 100644 --- a/arch/arm/mach-stm32mp/cpu.c +++ b/arch/arm/mach-stm32mp/cpu.c @@ -483,7 +483,7 @@ static void setup_boot_mode(void) gd->flags &= ~(GD_FLG_SILENT | GD_FLG_DISABLE_CONSOLE); printf("uart%d = %s not found in device tree!\n", - instance, cmd); + instance + 1, cmd); break; } sprintf(cmd, "%d", dev_seq(dev)); |