diff options
| -rw-r--r-- | drivers/net/rtl8139.c | 2 | ||||
| -rw-r--r-- | drivers/net/tsec.c | 4 | ||||
| -rw-r--r-- | include/net.h | 2 | 
3 files changed, 4 insertions, 4 deletions
| diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index 4186699ff..208ce5ccc 100644 --- a/drivers/net/rtl8139.c +++ b/drivers/net/rtl8139.c @@ -188,7 +188,7 @@ static int rtl_transmit(struct eth_device *dev, void *packet, int length);  static int rtl_poll(struct eth_device *dev);  static void rtl_disable(struct eth_device *dev);  #ifdef CONFIG_MCAST_TFTP/*  This driver already accepts all b/mcast */ -static int rtl_bcast_addr (struct eth_device *dev, u8 bcast_mac, u8 set) +static int rtl_bcast_addr(struct eth_device *dev, const u8 *bcast_mac, u8 set)  {  	return (0);  } diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index f5e314b9e..3428dd0cf 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -120,14 +120,14 @@ static void tsec_configure_serdes(struct tsec_private *priv)   * for PowerPC (tm) is usually the case) in the tregister holds   * the entry. */  static int -tsec_mcast_addr (struct eth_device *dev, u8 mcast_mac, u8 set) +tsec_mcast_addr(struct eth_device *dev, const u8 *mcast_mac, u8 set)  {  	struct tsec_private *priv = privlist[1];  	volatile tsec_t *regs = priv->regs;  	volatile u32  *reg_array, value;  	u8 result, whichbit, whichreg; -	result = (u8)((ether_crc(MAC_ADDR_LEN,mcast_mac) >> 24) & 0xff); +	result = (u8)((ether_crc(MAC_ADDR_LEN, mcast_mac) >> 24) & 0xff);  	whichbit = result & 0x1f;	/* the 5 LSB = which bit to set */  	whichreg = result >> 5;		/* the 3 MSB = which reg to set it in */  	value = (1 << (31-whichbit)); diff --git a/include/net.h b/include/net.h index 5aedc17aa..0802fad87 100644 --- a/include/net.h +++ b/include/net.h @@ -89,7 +89,7 @@ struct eth_device {  	int  (*recv) (struct eth_device *);  	void (*halt) (struct eth_device *);  #ifdef CONFIG_MCAST_TFTP -	int (*mcast) (struct eth_device *, u32 ip, u8 set); +	int (*mcast) (struct eth_device *, const u8 *enetaddr, u8 set);  #endif  	int  (*write_hwaddr) (struct eth_device *);  	struct eth_device *next; |