All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] smc911x_eeprom
@ 2010-06-29 14:59 Sergey Alyoshin
  2010-06-29 16:28 ` Ben Warren
  2010-06-29 19:44 ` Mike Frysinger
  0 siblings, 2 replies; 4+ messages in thread
From: Sergey Alyoshin @ 2010-06-29 14:59 UTC (permalink / raw)
  To: u-boot

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);

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-29 20:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-29 14:59 [U-Boot] [PATCH] smc911x_eeprom Sergey Alyoshin
2010-06-29 16:28 ` Ben Warren
2010-06-29 19:44 ` Mike Frysinger
2010-06-29 20:40   ` Sergey Alyoshin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.