Skip to content
Snippets Groups Projects
Commit aa9fba53 authored by Juergen Kilb's avatar Juergen Kilb Committed by Ben Warren
Browse files

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: default avatarJuergen Kilb <j.kilb@phytec.de>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>

Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
parent daa2ce62
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment