[U-Boot] [PATCH 2/5] smc911x: use dev->name in printfs
Mike Frysinger
vapier at gentoo.org
Fri Nov 13 04:21:09 CET 2009
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 <common.h>
> > #include <exports.h>
> >
> > -#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
More information about the U-Boot
mailing list