diff options
| author | Tom Rini <[email protected]> | 2022-06-07 08:17:08 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-06-07 08:17:08 -0400 |
| commit | d9ad48464c2c017bdaa2059f2f578e7b8d4401b3 (patch) | |
| tree | 2d8b5fed6c036d03e339c9efa08564791eb628b8 | |
| parent | 8f527342db4160a1f030de6fe4a1591787cce65a (diff) | |
| parent | 93216276f532c9eed2126860a678a6b4d77dc358 (diff) | |
Merge tag 'xilinx-for-v2022.07-rc4-v2' of https://source.denx.de/u-boot/custodians/u-boot-microblaze
Xilinx changes for v2022.07-rc4-v2
- Fix revision name (remove spaces)
| -rw-r--r-- | board/xilinx/common/board.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index 5be3090c318..629a6ee036f 100644 --- a/board/xilinx/common/board.c +++ b/board/xilinx/common/board.c @@ -245,6 +245,10 @@ static int xilinx_read_eeprom_fru(struct udevice *dev, char *name, } strncpy(desc->revision, (char *)fru_data.brd.rev, sizeof(desc->revision)); + for (i = 0; i < sizeof(desc->revision); i++) { + if (desc->revision[i] == ' ') + desc->revision[i] = '\0'; + } strncpy(desc->serial, (char *)fru_data.brd.serial_number, sizeof(desc->serial)); |
