From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Tue, 29 Jun 2010 09:28:22 -0700 Subject: [U-Boot] [PATCH] smc911x_eeprom In-Reply-To: References: Message-ID: <4C2A1F26.9030008@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Sergey, On 6/29/2010 7:59 AM, Sergey Alyoshin wrote: > 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); > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot > Somebody beat you to it. See commit 88fd3dbe7dac275bc2ae7727c7ebd293c53780c0 in net/next. regards, Ben