[U-Boot] [PATCH 1/2] board: ti: am57xx: Fix detection of board version
Tom Rini
trini at konsulko.com
Tue Jul 18 17:08:06 UTC 2017
On Sun, Jul 16, 2017 at 07:59:18PM +0530, Lokesh Vutla wrote:
> board_is*("rev", board_ti_get_rev()) uses strncmp() for
> revison detection and assumes it is success if return value
> is <= 0. This will fail in case of multiple versions, as
> revb will be true for board_is_*revb() and board_is_*reva().
> Fix it by looking for exact match of the string.
>
> Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170718/e5e338fc/attachment.sig>
More information about the U-Boot
mailing list