Commit aa9fba53 authored by Committed by Ben Warren
smc91xx_eeprom: Correct chip detection check.
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. Signed-off-by: Juergen Kilb <email@example.com> Acked-by: Mike Frysinger <firstname.lastname@example.org> Signed-off-by: Ben Warren <email@example.com>
Showing with 1 addition and 1 deletion