[U-Boot] [PATCH] KS8695: convert KS8695 eth driver to CONFIG_MULTI_ETH

Mike Frysinger vapier at gentoo.org
Sun Sep 11 21:15:07 CEST 2011


On Saturday, September 10, 2011 04:40:34 Greg Ungerer wrote:
> --- a/include/netdev.h
> +++ b/include/netdev.h
> 
> +int ks8695_eth_initialize(bd_t *bis);

so you say the func needs bd_t* ...

> --- a/board/cm4008/cm4008.c
> +++ b/board/cm4008/cm4008.c
> --- a/board/cm41xx/cm41xx.c
> +++ b/board/cm41xx/cm41xx.c
> 
> +int board_eth_init(bd_t *bis)
> +{
> +	return ks8695_eth_initialize();
> +}

but you dont pass it in the board funcs ...

> --- a/drivers/net/ks8695eth.c
> +++ b/drivers/net/ks8695eth.c
> 
> +int ks8695_eth_initialize(void)

nor does the func itself even take it ...

not sure how this compiles ?  do none of these files include netdev.h ?  if 
they don't, i don't see how it compiles cleanly as that means you'd get 
warnings about implicit func prototypes ...
-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/20110911/5faae601/attachment.pgp 


More information about the U-Boot mailing list