Searched hist:aa9fba5313a8a5c088d1cfc7708ed9d206105bc2 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/examples/standalone/ |
| H A D | smc911x_eeprom.c | aa9fba5313a8a5c088d1cfc7708ed9d206105bc2 Sat Jun 12 19:22:01 UTC 2010 Juergen Kilb <j.jilb@phytec.de> 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 <j.kilb@phytec.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
|