From: Tom Rini Date: Wed, 26 Jul 2017 15:50:25 -0400 Subject: [U-Boot] [U-Boot, 1/2] board: ti: am57xx: Fix detection of board version In-Reply-To: <20170716142919.3485-1-lokeshvutla@ti.com> References: <20170716142919.3485-1-lokeshvutla@ti.com> Message-ID: <20170726195025.GQ26163@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Tom Rini 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: