[U-Boot] [PATCH] smc911x_eeprom
Sergey Alyoshin
alyoshin.s at gmail.com
Tue Jun 29 16:59:02 CEST 2010
smc911x_eeprom: smc911x_detect_chip() function return 0 on success
diff --git a/examples/standalone/smc911x_eeprom.c
b/examples/standalone/smc911x_eeprom.c
index 104047f..cb3c131 100644
--- a/examples/standalone/smc911x_eeprom.c
+++ b/examples/standalone/smc911x_eeprom.c
@@ -240,7 +240,7 @@ static void dump_eeprom(struct eth_device *dev)
static int smc911x_init(struct eth_device *dev)
{
/* See if there is anything there */
- if (!smc911x_detect_chip(dev))
+ if (smc911x_detect_chip(dev))
return 1;
smc911x_reset(dev);
More information about the U-Boot
mailing list