[U-Boot] [PATCH] smc91xx_eeprom: Correct chip detection check.

Mike Frysinger
2010-06-13T02:28:31Z

On Sat, Jun 12, 2010 at 3:22 PM, Juergen Kilb wrote:
> The smc911x_detect function in /net/driver/net/smc911x.c
> returns a 0 if everything was ok (a chip was found) and -1 else.
> In the standalone example 'smc911x_eeprom' the return value
> of smc911x_detect is interpreted in a different way
> (0 for error, !0 as OK).
> This leads to the error that the chip will not be detected.

Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike