[U-Boot] [U-Boot, 1/2] board: ti: am57xx: Fix detection of board version

Tom Rini trini at konsulko.com
Wed Jul 26 19:50:25 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>

Applied to u-boot/master, thanks!

-- 
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/20170726/a3e5cd62/attachment.sig>


More information about the U-Boot mailing list