From: Mike Frysinger Date: Thu, 12 Nov 2009 22:21:09 -0500 Subject: [U-Boot] [PATCH 2/5] smc911x: use dev->name in printfs In-Reply-To: References: <200911111750.23141.vapier@gentoo.org> Message-ID: <200911122221.10183.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 12 November 2009 04:13:48 Mike Rapoport wrote: > On Thu, Nov 12, 2009 at 12:50 AM, Mike Frysinger wrote: > > here's my [compile] tested change as the board i have with this part isnt > > readily accessible atm ... > > I've tested your changes, MAC register dumps works Ok. I needed to > make some changes to make it work, see the comments below. > > > --- a/examples/standalone/smc911x_eeprom.c > > +++ b/examples/standalone/smc911x_eeprom.c > > @@ -17,8 +17,8 @@ > > #include > > #include > > > > -#ifdef CONFIG_DRIVER_SMC911X > > - > > +/* the smc911x.h gets base addr through eth_device' iobase */ > > +struct eth_device { const char *name; unsigned long iobase; }; > > Needed to add 'void *priv' needed for smc911x_detect_chip, otherwise > it does not compile with the latest U-Boot. i wrote it against last release which didnt need this. looking at smc911x.h, obviously priv is needed now and shouldnt be a problem adding it. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20091112/7bc039a5/attachment.pgp